(self)
| 141 | "readlines() returned improper text") |
| 142 | |
| 143 | def test_fileno(self): |
| 144 | file_num = self.returned_obj.fileno() |
| 145 | self.assertIsInstance(file_num, int, "fileno() did not return an int") |
| 146 | self.assertEqual(os.read(file_num, len(self.text)), self.text, |
| 147 | "Reading on the file descriptor returned by fileno() " |
| 148 | "did not return the expected text") |
| 149 | |
| 150 | def test_close(self): |
| 151 | # Test close() by calling it here and then having it be called again |
nothing calls this directly
no test coverage detected