Replaces str to byte to provide py3 compatibility

Partially-Implements: blueprint designate-py3

Change-Id: I390c98978016833f4f0d5de9a9ef9d82ec9d01ac
This commit is contained in:
sonu.kumar 2015-08-12 16:33:13 +05:30
parent 8aeaaf344d
commit aed85dbd68

View File

@ -57,8 +57,8 @@ class MdnsServiceTest(MdnsTestCase):
# ;ANSWER
# ;AUTHORITY
# ;ADDITIONAL
expected_response = ("271289050001000000000000076578616d706c6503636f6d"
"0000010001")
expected_response = (b"271289050001000000000000076578616d706c6503636f6"
b"d0000010001")
self.service._dns_handle(self.addr, binascii.a2b_hex(payload))
sendto_mock.assert_called_once_with(