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

Method test_list

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

Source from the content-addressed store, hash-verified

72 assert r(self._b(p[1])) == v
73
74 def test_list(self):
75 w = lambda x: self.wbuf().write_list(x).write_flush() # noqa
76 r = lambda x: self.rbuf(x).read_list() # noqa
77 tc = [(['d', 'ef', 'ault'], '00 00 00 09 64 2c 65 66 2c 61 75 6c 74')]
78 for p in tc:
79 assert w(p[0]) == self._b(p[1])
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

Callers

nothing calls this directly

Calls 4

_bMethod · 0.95
write_flushMethod · 0.80
write_listMethod · 0.80
read_listMethod · 0.80

Tested by

no test coverage detected