コード例 #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)