MCPcopy
hub / github.com/mitmproxy/mitmproxy / assert_eq

Method assert_eq

test/mitmproxy/test_dns.py:229–232  ·  view source on GitHub ↗
(m: dns.DNSMessage, b: bytes)

Source from the content-addressed store, hash-verified

227
228 def test_packing(self):
229 def assert_eq(m: dns.DNSMessage, b: bytes) -> None:
230 m_b = dns.DNSMessage.unpack(b, m.timestamp)
231 assert m_b == m
232 assert m_b.packed == m.packed
233
234 assert_eq(
235 tutils.tdnsreq(),

Callers

nothing calls this directly

Calls 1

unpackMethod · 0.80

Tested by

no test coverage detected