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

Method test_MakeResponseCopyDefault

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

Source from the content-addressed store, hash-verified

250 self.assertEqual(len(r.additional), 0)
251
252 def test_MakeResponseCopyDefault(self):
253 q = self._make_copy_query()
254 r = dns.message.make_response(q)
255 self.assertTrue(len(r.question) == 1 and q.question[0] == r.question[0])
256 self.assertEqual(len(r.answer), 0)
257 self.assertEqual(len(r.authority), 0)
258 self.assertEqual(len(r.additional), 0)
259
260 def test_MakeResponseCopyQuestion(self):
261 q = self._make_copy_query()

Callers

nothing calls this directly

Calls 1

_make_copy_queryMethod · 0.95

Tested by

no test coverage detected