(self)
| 95 | eq_(inits, [(B, "init", B), (A, "__init__")]) |
| 96 | |
| 97 | def test_ai_Bi(self): |
| 98 | inits = [] |
| 99 | |
| 100 | class A: |
| 101 | def __init__(self): |
| 102 | inits.append((A, "__init__")) |
| 103 | |
| 104 | class B(A): |
| 105 | def __init__(self): |
| 106 | inits.append((B, "__init__")) |
| 107 | super().__init__() |
| 108 | |
| 109 | self.register(B, inits) |
| 110 | |
| 111 | A() |
| 112 | eq_(inits, [(A, "__init__")]) |
| 113 | |
| 114 | del inits[:] |
| 115 | |
| 116 | B() |
| 117 | eq_(inits, [(B, "init", B), (B, "__init__"), (A, "__init__")]) |
| 118 | |
| 119 | def test_Ai_bi(self): |
| 120 | inits = [] |