(self)
| 549 | self.assertEqual(handler.requests, ["/weeble"]) |
| 550 | |
| 551 | def test_200(self): |
| 552 | expected_response = b"pycon 2008..." |
| 553 | handler = self.start_server([(200, [], expected_response)]) |
| 554 | data = self.urlopen("http://localhost:%s/bizarre" % handler.port) |
| 555 | self.assertEqual(data, expected_response) |
| 556 | self.assertEqual(handler.requests, ["/bizarre"]) |
| 557 | |
| 558 | def test_200_with_parameters(self): |
| 559 | expected_response = b"pycon 2008..." |
nothing calls this directly
no test coverage detected