示例#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)