(self)
| 645 | |
| 646 | |
| 647 | def test_iteration(self): |
| 648 | expected_response = b"pycon 2008..." |
| 649 | handler = self.start_server([(200, [], expected_response)]) |
| 650 | data = urllib.request.urlopen("http://localhost:%s" % handler.port) |
| 651 | for line in data: |
| 652 | self.assertEqual(line, expected_response) |
| 653 | |
| 654 | |
| 655 | def test_line_iteration(self): |
nothing calls this directly
no test coverage detected