MCPcopy
hub / github.com/django/django / test_cannot_connect_no_kwargs

Method test_cannot_connect_no_kwargs

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

Source from the content-addressed store, hash-verified

37
38 @override_settings(DEBUG=True)
39 def test_cannot_connect_no_kwargs(self):
40 def receiver_no_kwargs(sender):
41 pass
42
43 msg = "Signal receivers must accept keyword arguments (**kwargs)."
44 with self.assertRaisesMessage(ValueError, msg):
45 a_signal.connect(receiver_no_kwargs)
46 self.assertTestIsClean(a_signal)
47
48 @override_settings(DEBUG=True)
49 def test_cannot_connect_non_callable(self):

Callers

nothing calls this directly

Calls 3

assertTestIsCleanMethod · 0.95
assertRaisesMessageMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected