(self)
| 586 | self.assertEqual(sni_name, "localhost") |
| 587 | |
| 588 | def test_sending_headers(self): |
| 589 | handler = self.start_server() |
| 590 | req = urllib.request.Request("http://localhost:%s/" % handler.port, |
| 591 | headers={"Range": "bytes=20-39"}) |
| 592 | with urllib.request.urlopen(req): |
| 593 | pass |
| 594 | self.assertEqual(handler.headers_received["Range"], "bytes=20-39") |
| 595 | |
| 596 | def test_sending_headers_camel(self): |
| 597 | handler = self.start_server() |
nothing calls this directly
no test coverage detected