| 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") |