コード例 #1
0
ファイル: test_compound.py プロジェクト: eugene-eeo/katana
def test_option_empty():
    with pytest.raises(ValueError):
        assert option(Ta, Tb)(prepare([Nc]))
コード例 #2
0
ファイル: test_compound.py プロジェクト: eugene-eeo/katana
def test_option():
    opt = option(Ta, Tb, Tc)
    for node in [Na, Nb]:
        assert opt(prepare([node])) == Pair([node], [])