(self)
| 171 | self.assertEqual(b'', data) |
| 172 | |
| 173 | def test_read_exception(self): |
| 174 | stream = self._make_one() |
| 175 | stream.feed_data(b'line\n') |
| 176 | |
| 177 | data = self.loop.run_until_complete(stream.read(2)) |
| 178 | self.assertEqual(b'li', data) |
| 179 | |
| 180 | stream.set_exception(ValueError()) |
| 181 | self.assertRaises( |
| 182 | ValueError, self.loop.run_until_complete, stream.read(2)) |
| 183 | |
| 184 | def test_readline(self): |
| 185 | # Read one line. 'readline' will need to wait for the data |
nothing calls this directly
no test coverage detected