(self)
| 75 | self.assertTrue(open_url.read(), "calling 'read' failed") |
| 76 | |
| 77 | def test_readlines(self): |
| 78 | # Test both readline and readlines. |
| 79 | with self.urlopen(self.url) as open_url: |
| 80 | self.assertIsInstance(open_url.readline(), bytes, |
| 81 | "readline did not return a string") |
| 82 | self.assertIsInstance(open_url.readlines(), list, |
| 83 | "readlines did not return a list") |
| 84 | |
| 85 | def test_info(self): |
| 86 | # Test 'info'. |
nothing calls this directly
no test coverage detected