(self)
| 1116 | self.assertEqual(res.status, HTTPStatus.NOT_FOUND) |
| 1117 | |
| 1118 | def test_post(self): |
| 1119 | params = urllib.parse.urlencode( |
| 1120 | {'spam' : 1, 'eggs' : 'python', 'bacon' : 123456}) |
| 1121 | headers = {'Content-type' : 'application/x-www-form-urlencoded'} |
| 1122 | res = self.request('/cgi-bin/file2.py', 'POST', params, headers) |
| 1123 | |
| 1124 | self.assertEqual(res.read(), b'1, python, 123456' + self.linesep) |
| 1125 | |
| 1126 | def test_large_content_length(self): |
| 1127 | for w in range(15, 25): |
nothing calls this directly
no test coverage detected