(self)
| 24 | p.get_uint8() |
| 25 | |
| 26 | def test_name(self): |
| 27 | # www.dnspython.org NS IN question |
| 28 | wire = b"\x03www\x09dnspython\x03org\x00\x00\x02\x00\x01" |
| 29 | expected = dns.name.from_text("www.dnspython.org") |
| 30 | p = dns.wire.Parser(wire) |
| 31 | self.assertEqual(p.get_name(), expected) |
| 32 | self.assertEqual(p.get_uint16(), 2) |
| 33 | self.assertEqual(p.get_uint16(), 1) |
| 34 | self.assertEqual(p.remaining(), 0) |
| 35 | |
| 36 | def test_relativized_name(self): |
| 37 | # www.dnspython.org NS IN question |
nothing calls this directly
no test coverage detected