(self)
| 117 | self.file = File(self.mock) |
| 118 | |
| 119 | def test_read(self): |
| 120 | self.mock.set_eval_response(True, "hello world\n") |
| 121 | result = self.file.read("/etc/hostname") |
| 122 | self.assertEqual(result, "hello world") |
| 123 | |
| 124 | def test_read_nil(self): |
| 125 | self.mock.set_eval_response(True, "__NIL__\n") |
nothing calls this directly
no test coverage detected