def test_last_good_git_revision(context):
    assert sgpg.get_last_good_git_revision(context) is None
def test_last_good_git_revision_exists(context):
    try:
        sgpg.write_last_good_git_revision(context, "foo")
        assert sgpg.get_last_good_git_revision(context) == "foo"
    finally:
        os.remove(context.config['last_good_git_revision_file'])