(self)
| 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() |
no test coverage detected