MCPcopy
hub / github.com/django/django / test_absolute_url

Method test_absolute_url

tests/requests_tests/tests.py:1600–1603  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1598 factory = RequestFactory()
1599
1600 def test_absolute_url(self):
1601 request = HttpRequest()
1602 url = "https://www.example.com/asdf"
1603 self.assertEqual(request.build_absolute_uri(location=url), url)
1604
1605 def test_host_retrieval(self):
1606 request = HttpRequest()

Callers

nothing calls this directly

Calls 2

build_absolute_uriMethod · 0.95
HttpRequestClass · 0.90

Tested by

no test coverage detected