MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_ai_B

Method test_ai_B

test/orm/test_instrumentation.py:77–95  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 = []

Callers

nothing calls this directly

Calls 4

registerMethod · 0.95
eq_Function · 0.90
AClass · 0.70
BClass · 0.70

Tested by

no test coverage detected