MCPcopy
hub / github.com/django/django / test_full_url

Method test_full_url

tests/resolve_url/tests.py:30–35  ·  view source on GitHub ↗

Passing a full URL to resolve_url() results in the same url.

(self)

Source from the content-addressed store, hash-verified

28 self.assertEqual("./relative/", resolve_url("./relative/"))
29
30 def test_full_url(self):
31 """
32 Passing a full URL to resolve_url() results in the same url.
33 """
34 url = "http://example.com/"
35 self.assertEqual(url, resolve_url(url))
36
37 def test_model(self):
38 """

Callers

nothing calls this directly

Calls 1

resolve_urlFunction · 0.90

Tested by

no test coverage detected