(self)
| 636 | |
| 637 | |
| 638 | def test_geturl(self): |
| 639 | # Make sure same URL as opened is returned by geturl. |
| 640 | handler = self.start_server() |
| 641 | open_url = urllib.request.urlopen("http://localhost:%s" % handler.port) |
| 642 | with open_url: |
| 643 | url = open_url.geturl() |
| 644 | self.assertEqual(url, "http://localhost:%s" % handler.port) |
| 645 | |
| 646 | |
| 647 | def test_iteration(self): |
nothing calls this directly
no test coverage detected