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

Method test_MakeResponseCopyEverything

tests/test_message.py:268–274  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

266 self.assertEqual(len(r.additional), 0)
267
268 def test_MakeResponseCopyEverything(self):
269 q = self._make_copy_query()
270 r = dns.message.make_response(q, copy_mode=dns.message.CopyMode.EVERYTHING)
271 self.assertTrue(len(r.question) == 1 and q.question == r.question)
272 self.assertTrue(len(r.answer) == 1 and q.answer == r.answer)
273 self.assertTrue(len(r.authority) == 1 and q.authority == r.authority)
274 self.assertTrue(len(r.additional) == 1 and q.additional == r.additional)
275
276 def test_ExtendedRcodeSetting(self):
277 m = dns.message.make_query("foo", "A")

Callers

nothing calls this directly

Calls 1

_make_copy_queryMethod · 0.95

Tested by

no test coverage detected