MCPcopy
hub / github.com/django/django / test_simple_argument_get

Method test_simple_argument_get

tests/test_client_regress/tests.py:750–754  ·  view source on GitHub ↗

Get a view that has a simple string argument

(self)

Source from the content-addressed store, hash-verified

748)
749class URLEscapingTests(SimpleTestCase):
750 def test_simple_argument_get(self):
751 "Get a view that has a simple string argument"
752 response = self.client.get(reverse("arg_view", args=["Slartibartfast"]))
753 self.assertEqual(response.status_code, 200)
754 self.assertEqual(response.content, b"Howdy, Slartibartfast")
755
756 def test_argument_with_space_get(self):
757 "Get a view that has a string argument that requires escaping"

Callers

nothing calls this directly

Calls 2

reverseFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected