(self)
| 189 | |
| 190 | |
| 191 | def test_read_data(self): |
| 192 | mock = mock_open(read_data='foo') |
| 193 | with patch('%s.open' % __name__, mock, create=True): |
| 194 | h = open('bar') |
| 195 | result = h.read() |
| 196 | |
| 197 | self.assertEqual(result, 'foo') |
| 198 | |
| 199 | |
| 200 | def test_readline_data(self): |
nothing calls this directly
no test coverage detected