(self)
| 1055 | self.assertEqual(int(newreq.get_header('Content-length')), 11) |
| 1056 | |
| 1057 | def test_http_body_empty_seq(self): |
| 1058 | # Zero-length iterable body should be treated like any other iterable |
| 1059 | h = urllib.request.AbstractHTTPHandler() |
| 1060 | h.parent = MockOpener() |
| 1061 | req = h.do_request_(Request("http://example.com/", ())) |
| 1062 | self.assertEqual(req.get_header("Transfer-encoding"), "chunked") |
| 1063 | self.assertFalse(req.has_header("Content-length")) |
| 1064 | |
| 1065 | def test_http_body_array(self): |
| 1066 | # array.array Iterable - Content Length is calculated |
nothing calls this directly
no test coverage detected