(self)
| 629 | self.assertEqual(url, "http://localhost:%s" % handler.port) |
| 630 | |
| 631 | def test_iteration(self): |
| 632 | expected_response = b"pycon 2008..." |
| 633 | handler = self.start_server([(200, [], expected_response)]) |
| 634 | data = urllib.request.urlopen("http://localhost:%s" % handler.port) |
| 635 | for line in data: |
| 636 | self.assertEqual(line, expected_response) |
| 637 | |
| 638 | def test_line_iteration(self): |
| 639 | lines = [b"We\n", b"got\n", b"here\n", b"verylong " * 8192 + b"\n"] |
nothing calls this directly
no test coverage detected