def _to_wire(self, file, compress=None, origin=None, canonicalize=False):
file.write(struct.pack("!H", self.priority))
- self.target.to_wire(file, None, origin, canonicalize)
+ self.target.to_wire(file, None, origin, False)
for key in sorted(self.params):
file.write(struct.pack("!H", key))
value = self.params[key]
def test_alias_not_compressed(self):
rrs = dns.rrset.from_text('elsewhere.', 300, 'in', 'svcb',
- '0 elsewhere.')
+ '0 elseWhere.')
output = io.BytesIO()
compress = {}
rrs.to_wire(output, compress)
# Just one of these assertions is enough, but we do both to show
# the bug we're checking is fixed.
assert not wire.endswith(b'\xc0\x00')
- assert wire.endswith(b'\x09elsewhere\x00')
+ assert wire.endswith(b'\x09elseWhere\x00')