MCPcopy
hub / github.com/django/django / test_class_based_view_with_args

Method test_class_based_view_with_args

tests/resolve_url/tests.py:65–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 self.assertEqual("/params-cbv/5/", resolve_url(params_cbv, pk=5))
64
65 def test_class_based_view_with_args(self):
66 self.assertEqual("/params-cbv/5/", resolve_url(params_cbv, 5))
67
68 def test_missing_params_raise_no_reverse_match(self):
69 with self.assertRaises(NoReverseMatch):

Callers

nothing calls this directly

Calls 1

resolve_urlFunction · 0.90

Tested by

no test coverage detected