(self)
| 315 | self.unfakehttp() |
| 316 | |
| 317 | def test_url_fragment(self): |
| 318 | # Issue #11703: geturl() omits fragments in the original URL. |
| 319 | url = 'http://docs.python.org/library/urllib.html#OK' |
| 320 | self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!") |
| 321 | try: |
| 322 | fp = urllib.request.urlopen(url) |
| 323 | self.assertEqual(fp.geturl(), url) |
| 324 | finally: |
| 325 | self.unfakehttp() |
| 326 | |
| 327 | def test_willclose(self): |
| 328 | self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello!") |
nothing calls this directly
no test coverage detected