MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_Ai

Method test_Ai

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

Source from the content-addressed store, hash-verified

63 eq_(inits, [(A, "init", A)])
64
65 def test_Ai(self):
66 inits = []
67
68 class A:
69 def __init__(self):
70 inits.append((A, "__init__"))
71
72 self.register(A, inits)
73
74 A()
75 eq_(inits, [(A, "init", A), (A, "__init__")])
76
77 def test_ai_B(self):
78 inits = []

Callers

nothing calls this directly

Calls 3

registerMethod · 0.95
eq_Function · 0.90
AClass · 0.70

Tested by

no test coverage detected