(self)
| 40 | assert r(self._b(p[1])) == p[0] |
| 41 | |
| 42 | def test_bool(self): |
| 43 | w = lambda x: self.wbuf().write_bool(x).write_flush() # noqa |
| 44 | r = lambda x: self.rbuf(x).read_bool() # noqa |
| 45 | tc = [(True, '01'), |
| 46 | (False, '00')] |
| 47 | for p in tc: |
| 48 | assert w(p[0]) == self._b(p[1]) |
| 49 | assert r(self._b(p[1])) == p[0] |
| 50 | |
| 51 | def test_int(self): |
| 52 | w = lambda x: self.wbuf().write_int(x).write_flush() # noqa |
nothing calls this directly
no test coverage detected