MCPcopy
hub / github.com/jtesta/ssh-audit / test_list_nonutf8

Method test_list_nonutf8

test/test_buffer.py:82–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_bMethod · 0.95
read_listMethod · 0.80

Tested by

no test coverage detected