(self)
| 377 | self.assertEqual(b'', stream._buffer) |
| 378 | |
| 379 | def test_readuntil_separator(self): |
| 380 | stream = asyncio.StreamReader(loop=self.loop) |
| 381 | with self.assertRaisesRegex(ValueError, 'Separator should be'): |
| 382 | self.loop.run_until_complete(stream.readuntil(separator=b'')) |
| 383 | with self.assertRaisesRegex(ValueError, 'Separator should be'): |
| 384 | self.loop.run_until_complete(stream.readuntil(separator=(b'',))) |
| 385 | with self.assertRaisesRegex(ValueError, 'Separator should contain'): |
| 386 | self.loop.run_until_complete(stream.readuntil(separator=())) |
| 387 | |
| 388 | def test_readuntil_multi_chunks(self): |
| 389 | stream = asyncio.StreamReader(loop=self.loop) |
nothing calls this directly
no test coverage detected