| 117 | eq_(inits, [(B, "init", B), (B, "__init__"), (A, "__init__")]) |
| 118 | |
| 119 | def test_Ai_bi(self): |
| 120 | inits = [] |
| 121 | |
| 122 | class A: |
| 123 | def __init__(self): |
| 124 | inits.append((A, "__init__")) |
| 125 | |
| 126 | self.register(A, inits) |
| 127 | |
| 128 | class B(A): |
| 129 | def __init__(self): |
| 130 | inits.append((B, "__init__")) |
| 131 | super().__init__() |
| 132 | |
| 133 | A() |
| 134 | eq_(inits, [(A, "init", A), (A, "__init__")]) |
| 135 | |
| 136 | del inits[:] |
| 137 | |
| 138 | B() |
| 139 | eq_(inits, [(B, "__init__"), (A, "init", B), (A, "__init__")]) |
| 140 | |
| 141 | def test_Ai_Bi(self): |
| 142 | inits = [] |