(self)
| 266 | |
| 267 | |
| 268 | def test_read_bytes(self): |
| 269 | mock = mock_open(read_data=b'\xc6') |
| 270 | with patch('%s.open' % __name__, mock, create=True): |
| 271 | with open('abc', 'rb') as f: |
| 272 | result = f.read() |
| 273 | self.assertEqual(result, b'\xc6') |
| 274 | |
| 275 | |
| 276 | def test_readline_bytes(self): |
nothing calls this directly
no test coverage detected