MCPcopy
hub / github.com/django/django / test_post

Method test_post

tests/test_client_regress/tests.py:1071–1075  ·  view source on GitHub ↗

Request a view via request method POST

(self)

Source from the content-addressed store, hash-verified

1069 self.assertEqual(response.content, b"request method: GET")
1070
1071 def test_post(self):
1072 "Request a view via request method POST"
1073 response = self.client.post("/request_methods/")
1074 self.assertEqual(response.status_code, 200)
1075 self.assertEqual(response.content, b"request method: POST")
1076
1077 def test_head(self):
1078 "Request a view via request method HEAD"

Callers

nothing calls this directly

Calls 1

postMethod · 0.45

Tested by

no test coverage detected