summaryrefslogtreecommitdiff
path: root/tests/test_ntoaaton.py
diff options
context:
space:
mode:
authorMartin <martin.basti@gmail.com>2016-07-02 03:17:28 +0200
committerMartin <martin.basti@gmail.com>2016-07-02 03:18:42 +0200
commitfbca4e48bab72178209fc50337c1ab5608094240 (patch)
tree6e440b8fa14f30caaad489a88cb94c4c85606af2 /tests/test_ntoaaton.py
parent9fa94d066dd6600d85f53ead4210a324f4a9372d (diff)
downloaddnspython-fbca4e48bab72178209fc50337c1ab5608094240.tar.gz
Py3: fix tests
Diffstat (limited to 'tests/test_ntoaaton.py')
-rw-r--r--tests/test_ntoaaton.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_ntoaaton.py b/tests/test_ntoaaton.py
index ac72403..2a47ceb 100644
--- a/tests/test_ntoaaton.py
+++ b/tests/test_ntoaaton.py
@@ -39,19 +39,19 @@ class NtoAAtoNTestCase(unittest.TestCase):
def test_aton1(self):
a = aton6('::')
- self.failUnless(a == '\x00' * 16)
+ self.failUnless(a == b'\x00' * 16)
def test_aton2(self):
a = aton6('::1')
- self.failUnless(a == '\x00' * 15 + '\x01')
+ self.failUnless(a == b'\x00' * 15 + b'\x01')
def test_aton3(self):
a = aton6('::10.0.0.1')
- self.failUnless(a == '\x00' * 12 + '\x0a\x00\x00\x01')
+ self.failUnless(a == b'\x00' * 12 + b'\x0a\x00\x00\x01')
def test_aton4(self):
a = aton6('abcd::dcba')
- self.failUnless(a == '\xab\xcd' + '\x00' * 12 + '\xdc\xba')
+ self.failUnless(a == b'\xab\xcd' + b'\x00' * 12 + b'\xdc\xba')
def test_aton5(self):
a = aton6('1:2:3:4:5:6:7:8')