(self)
| 75 | eq_(inits, [(A, "init", A), (A, "__init__")]) |
| 76 | |
| 77 | def test_ai_B(self): |
| 78 | inits = [] |
| 79 | |
| 80 | class A: |
| 81 | def __init__(self): |
| 82 | inits.append((A, "__init__")) |
| 83 | |
| 84 | class B(A): |
| 85 | pass |
| 86 | |
| 87 | self.register(B, inits) |
| 88 | |
| 89 | A() |
| 90 | eq_(inits, [(A, "__init__")]) |
| 91 | |
| 92 | del inits[:] |
| 93 | |
| 94 | B() |
| 95 | eq_(inits, [(B, "init", B), (A, "__init__")]) |
| 96 | |
| 97 | def test_ai_Bi(self): |
| 98 | inits = [] |