コード例 #1
0
def test_type_mro():
    assert super_signature([[object], [type]]) == [type]
コード例 #2
0
def test_super_signature():
    assert super_signature([[A]]) == [A]
    assert super_signature([[A], [B]]) == [B]
    assert super_signature([[A, B], [B, A]]) == [B, B]
    assert super_signature([[A, A, B], [A, B, A], [B, A, A]]) == [B, B, B]