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

Method test_added_rdata

tests/test_update.py:316–323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

314 self.assertEqual(u, expected)
315
316 def test_added_rdata(self):
317 u = dns.update.UpdateMessage("example.", id=1)
318 rd1 = dns.rdata.from_text(dns.rdataclass.IN, dns.rdatatype.A, "10.0.0.1")
319 rd2 = dns.rdata.from_text(dns.rdataclass.IN, dns.rdatatype.A, "10.0.0.2")
320 u.add("foo", 300, rd1)
321 u.add("foo", 300, rd2)
322 expected = dns.message.from_text(added_text)
323 self.assertEqual(u, expected)
324
325 def test_replaced_rdata(self):
326 u = dns.update.UpdateMessage("example.", id=1)

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
from_textMethod · 0.45

Tested by

no test coverage detected