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

Method test_added_rdataset

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

Source from the content-addressed store, hash-verified

293 self.assertEqual(u.sections[3], [])
294
295 def test_added_rdataset(self):
296 u = dns.update.UpdateMessage("example.", id=1)
297 rds = dns.rdataset.from_text("in", "a", 300, "10.0.0.1", "10.0.0.2")
298 u.add("foo", rds)
299 expected = dns.message.from_text(added_text)
300 self.assertEqual(u, expected)
301
302 def test_replaced_rdataset(self):
303 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