(self)
| 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 |
| 102 | URL = self.url + "XXXinvalidXXX" |
| 103 | with socket_helper.transient_internet(URL): |
| 104 | with self.assertRaises(urllib.error.URLError) as e: |
| 105 | with urllib.request.urlopen(URL): |
| 106 | pass |
| 107 | self.assertEqual(e.exception.code, 404) |
| 108 | e.exception.close() |
| 109 | |
| 110 | @support.requires_resource('walltime') |
| 111 | def test_bad_address(self): |
nothing calls this directly
no test coverage detected