예제 #1
0
파일: test_utils.py 프로젝트: mbr/legitfs
def test_split_not_found():
    with pytest.raises(ValueError):
        split_using(lambda v: v > 5, [3])
예제 #2
0
파일: test_utils.py 프로젝트: mbr/legitfs
def test_split_using(input, top, tail):
    assert split_using(lambda v: v > 5, input) == (top, tail)