(self)
| 92 | self.assertEqual(info_obj.get_content_subtype(), "html") |
| 93 | |
| 94 | def test_geturl(self): |
| 95 | # Make sure same URL as opened is returned by geturl. |
| 96 | with self.urlopen(self.url) as open_url: |
| 97 | gotten_url = open_url.geturl() |
| 98 | self.assertEqual(gotten_url, self.url) |
| 99 | |
| 100 | def test_getcode(self): |
| 101 | # test getcode() with the fancy opener to get 404 error codes |
nothing calls this directly
no test coverage detected