MCPcopy
hub / github.com/django/django / test_not_callable

Method test_not_callable

tests/urlpatterns_reverse/tests.py:1747–1753  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1745 get_callable("urlpatterns_reverse.foo.bar")
1746
1747 def test_not_callable(self):
1748 msg = (
1749 "Could not import 'urlpatterns_reverse.tests.resolve_test_data'. "
1750 "View is not callable."
1751 )
1752 with self.assertRaisesMessage(ViewDoesNotExist, msg):
1753 get_callable("urlpatterns_reverse.tests.resolve_test_data")
1754
1755
1756class IncludeTests(SimpleTestCase):

Callers

nothing calls this directly

Calls 2

get_callableFunction · 0.90
assertRaisesMessageMethod · 0.80

Tested by

no test coverage detected