(self)
| 307 | self.assertTrue(int(res.getheader('Content-Length'))) |
| 308 | |
| 309 | def test_latin1_header(self): |
| 310 | self.con.request('LATINONEHEADER', '/', headers={ |
| 311 | 'X-Special-Incoming': 'Ärger mit Unicode' |
| 312 | }) |
| 313 | res = self.con.getresponse() |
| 314 | self.assertEqual(res.getheader('X-Special'), 'Dängerous Mind') |
| 315 | self.assertEqual(res.read(), 'Ärger mit Unicode'.encode('utf-8')) |
| 316 | |
| 317 | def test_error_content_length(self): |
| 318 | # Issue #16088: standard error responses should have a content-length |
nothing calls this directly
no test coverage detected