MCPcopy
hub / github.com/django/django / test_callable

Method test_callable

tests/test_utils/tests.py:1345–1349  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1343 warnings.warn("Unexpected message", UserWarning)
1344
1345 def test_callable(self):
1346 def func():
1347 warnings.warn("Expected message", UserWarning)
1348
1349 self.assertWarnsMessage(UserWarning, "Expected message", func)
1350
1351 def test_special_re_chars(self):
1352 def func1():

Callers

nothing calls this directly

Calls 1

assertWarnsMessageMethod · 0.80

Tested by

no test coverage detected