MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_parent_class_only

Method test_parent_class_only

test/base/test_events.py:1017–1029  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1015 )
1016
1017 def test_parent_class_only(self):
1018 l1 = Mock()
1019
1020 event.listen(self.TargetFactory, "event_one", l1)
1021
1022 element = self.TargetFactory().create()
1023 element.run_event(1)
1024 element.run_event(2)
1025 element.run_event(3)
1026 eq_(
1027 l1.mock_calls,
1028 [call(element, 1), call(element, 2), call(element, 3)],
1029 )
1030
1031 def test_parent_class_child_class(self):
1032 l1 = Mock()

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
callFunction · 0.85
run_eventMethod · 0.80
listenMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected