MCPcopy
hub / github.com/django/django / test_lazy_reverse

Method test_lazy_reverse

tests/resolve_url/tests.py:75–82  ·  view source on GitHub ↗

Passing the result of reverse_lazy is resolved to a real URL string.

(self)

Source from the content-addressed store, hash-verified

73 resolve_url(params_cbv)
74
75 def test_lazy_reverse(self):
76 """
77 Passing the result of reverse_lazy is resolved to a real URL
78 string.
79 """
80 resolved_url = resolve_url(reverse_lazy("some-view"))
81 self.assertIsInstance(resolved_url, str)
82 self.assertEqual("/some-url/", resolved_url)
83
84 def test_valid_view_name(self):
85 """

Callers

nothing calls this directly

Calls 1

resolve_urlFunction · 0.90

Tested by

no test coverage detected