def test_pop_other_raises_value_error_if_not_me_is_the_only_value():
    try:
        result = secret_santa.pop_other(['test'], 'test')
    except ValueError as e:
        assert e.args[0] == "Prohibited value is the only remaining value"
    else:
        assert False, "Expected Value Error"
def test_pop_other_removes_item_from_list():
    # creates an unaltered copy of the list
    people = people_list()
    people_copy = list(people)

    result = secret_santa.pop_other(people, 'foo')
    assert result not in people
def test_pop_other_does_not_remove_the_prohibited_item():
    for times in range(100):
        people = people_list()
        result = secret_santa.pop_other(people, 'test')
        assert 'test' != result