MCPcopy
hub / github.com/django/django / test_add_with_GET_args

Method test_add_with_GET_args

tests/admin_views/tests.py:328–336  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

326 self.assertEqual(response.status_code, 200)
327
328 def test_add_with_GET_args(self):
329 response = self.client.get(
330 reverse("admin:admin_views_section_add"), {"name": "My Section"}
331 )
332 self.assertContains(
333 response,
334 'value="My Section"',
335 msg_prefix="Couldn't find an input with the right value in the response",
336 )
337
338 def test_add_query_string_persists(self):
339 save_options = [

Callers

nothing calls this directly

Calls 3

reverseFunction · 0.90
assertContainsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected