MCPcopy
hub / github.com/django/django / test_basic_add_GET

Method test_basic_add_GET

tests/admin_views/tests.py:320–326  ·  view source on GitHub ↗

A smoke test to ensure GET on the add_view works.

(self)

Source from the content-addressed store, hash-verified

318 self.assertRedirects(response, add_url, status_code=301)
319
320 def test_basic_add_GET(self):
321 """
322 A smoke test to ensure GET on the add_view works.
323 """
324 response = self.client.get(reverse("admin:admin_views_section_add"))
325 self.assertIsInstance(response, TemplateResponse)
326 self.assertEqual(response.status_code, 200)
327
328 def test_add_with_GET_args(self):
329 response = self.client.get(

Callers

nothing calls this directly

Calls 2

reverseFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected