If you leave off the trailing slash, app should redirect and add it.
(self)
| 310 | ) |
| 311 | class AdminViewBasicTest(AdminViewBasicTestCase): |
| 312 | def test_trailing_slash_required(self): |
| 313 | """ |
| 314 | If you leave off the trailing slash, app should redirect and add it. |
| 315 | """ |
| 316 | add_url = reverse("admin:admin_views_article_add") |
| 317 | response = self.client.get(add_url[:-1]) |
| 318 | self.assertRedirects(response, add_url, status_code=301) |
| 319 | |
| 320 | def test_basic_add_GET(self): |
| 321 | """ |
nothing calls this directly
no test coverage detected