def test_split_not_found(): with pytest.raises(ValueError): split_using(lambda v: v > 5, [3])
def test_split_using(input, top, tail): assert split_using(lambda v: v > 5, input) == (top, tail)