(self)
| 67 | r.close() |
| 68 | |
| 69 | def test_basic(self): |
| 70 | # Simple test expected to pass. |
| 71 | with self.urlopen(self.url) as open_url: |
| 72 | for attr in ("read", "readline", "readlines", "fileno", "close", |
| 73 | "info", "geturl"): |
| 74 | self.assertHasAttr(open_url, attr) |
| 75 | self.assertTrue(open_url.read(), "calling 'read' failed") |
| 76 | |
| 77 | def test_readlines(self): |
| 78 | # Test both readline and readlines. |
nothing calls this directly
no test coverage detected