MCPcopy Create free account
hub / github.com/rthalley/dnspython / test_bad_id

Method test_bad_id

tests/test_async.py:853–862  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

851 self.assertRaises(dns.query.BadResponse, bad)
852
853 def test_bad_id(self):
854 async def run():
855 bad_r = dns.message.make_response(self.q)
856 bad_r.id += 1
857 bad_r_wire = bad_r.to_wire()
858 await self.mock_receive(
859 bad_r_wire, ("127.0.0.1", 53), self.good_r_wire, ("127.0.0.1", 53)
860 )
861
862 self.async_run(run)
863
864 def test_bad_id_not_ignored(self):
865 bad_r = dns.message.make_response(self.q)

Callers

nothing calls this directly

Calls 1

async_runMethod · 0.95

Tested by

no test coverage detected