(self)
| 80 | assert r(self._b(p[1])) == p[0] |
| 81 | |
| 82 | def test_list_nonutf8(self): |
| 83 | r = lambda x: self.rbuf(x).read_list() # noqa |
| 84 | src = self._b('00 00 00 04 de ad be ef') |
| 85 | dst = [(b'\xde\xad' + self.utf8rchar + self.utf8rchar).decode('utf-8')] |
| 86 | assert r(src) == dst |
| 87 | |
| 88 | def test_line(self): |
| 89 | w = lambda x: self.wbuf().write_line(x).write_flush() # noqa |