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

Method test_to_wire2

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

Source from the content-addressed store, hash-verified

156 self.assertEqual(update.to_wire(), goodwire)
157
158 def test_to_wire2(self): # type: () -> None
159 update = dns.update.Update("example")
160 update.id = 1
161 update.present("foo")
162 update.present("foo", "a")
163 update.present("bar", "a", "10.0.0.5")
164 update.absent("blaz2")
165 update.absent("blaz2", "a")
166 update.replace("foo", 300, "a", "10.0.0.1", "10.0.0.2")
167 update.add("bar", 300, dns.rdata.from_text(1, 1, "10.0.0.3"))
168 update.delete("bar", "a", "10.0.0.4")
169 update.delete("blaz", "a")
170 update.delete("blaz2")
171 self.assertEqual(update.to_wire(), goodwire)
172
173 def test_to_wire3(self): # type: () -> None
174 update = dns.update.Update("example")

Callers

nothing calls this directly

Calls 7

presentMethod · 0.80
absentMethod · 0.80
replaceMethod · 0.45
addMethod · 0.45
from_textMethod · 0.45
deleteMethod · 0.45
to_wireMethod · 0.45

Tested by

no test coverage detected