Get a view that has a simple string argument
(self)
| 748 | ) |
| 749 | class 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" |