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

Method _make_copy_query

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

Source from the content-addressed store, hash-verified

234 self.assertEqual(r.edns, 0)
235
236 def _make_copy_query(self):
237 q = dns.message.make_query("foo", "A")
238 # These are nonsensical, but all we care about is they get copied.
239 q.answer.append(dns.rrset.from_text("foo", 300, "IN", "A", "10.0.0.1"))
240 q.authority.append(dns.rrset.from_text("foo2", 300, "IN", "A", "10.0.0.2"))
241 q.additional.append(dns.rrset.from_text("foo3", 300, "IN", "A", "10.0.0.3"))
242 return q
243
244 def test_MakeResponseCopyNothing(self):
245 q = self._make_copy_query()

Calls 1

from_textMethod · 0.45

Tested by

no test coverage detected