コード例 #1
0
def test_great_grandchild(model, expected):
    result = discovery_lookup_from_model(A, model)
    assert result == expected
コード例 #2
0
def test_self():
    with pytest.raises(InvalidModel):
        discovery_lookup_from_model(A, A)