MCPcopy
hub / github.com/django/django / test_uid_registration

Method test_uid_registration

tests/dispatch/tests.py:169–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

167 self.assertTestIsClean(a_signal)
168
169 def test_uid_registration(self):
170 def uid_based_receiver_1(**kwargs):
171 pass
172
173 def uid_based_receiver_2(**kwargs):
174 pass
175
176 a_signal.connect(uid_based_receiver_1, dispatch_uid="uid")
177 a_signal.connect(uid_based_receiver_2, dispatch_uid="uid")
178 self.assertEqual(len(a_signal.receivers), 1)
179 a_signal.disconnect(dispatch_uid="uid")
180 self.assertTestIsClean(a_signal)
181
182 def test_send_robust_success(self):
183 a_signal.connect(receiver_1_arg)

Callers

nothing calls this directly

Calls 3

assertTestIsCleanMethod · 0.95
connectMethod · 0.45
disconnectMethod · 0.45

Tested by

no test coverage detected