Fix tests.

This commit is contained in:
Itamar Turner-Trauring 2020-10-27 14:24:20 -04:00
parent bcb6822171
commit f1b281123d

View File

@ -384,7 +384,7 @@ class TestMissingPorts(unittest.TestCase):
with get_addr, alloc_port: with get_addr, alloc_port:
tubport, tublocation = _tub_portlocation(config) tubport, tublocation = _tub_portlocation(config)
self.assertEqual(tubport, "tcp:777") self.assertEqual(tubport, "tcp:777")
self.assertEqual(tublocation, "tcp:LOCAL:777") self.assertEqual(tublocation, b"tcp:LOCAL:777")
def test_parsing_defaults(self): def test_parsing_defaults(self):
""" """
@ -406,7 +406,7 @@ class TestMissingPorts(unittest.TestCase):
with get_addr, alloc_port: with get_addr, alloc_port:
tubport, tublocation = _tub_portlocation(config) tubport, tublocation = _tub_portlocation(config)
self.assertEqual(tubport, "tcp:999") self.assertEqual(tubport, "tcp:999")
self.assertEqual(tublocation, "tcp:LOCAL:999") self.assertEqual(tublocation, b"tcp:LOCAL:999")
def test_parsing_location_complex(self): def test_parsing_location_complex(self):
""" """
@ -429,7 +429,7 @@ class TestMissingPorts(unittest.TestCase):
with get_addr, alloc_port: with get_addr, alloc_port:
tubport, tublocation = _tub_portlocation(config) tubport, tublocation = _tub_portlocation(config)
self.assertEqual(tubport, "tcp:999") self.assertEqual(tubport, "tcp:999")
self.assertEqual(tublocation, "tcp:HOST:888,tcp:LOCAL:999") self.assertEqual(tublocation, b"tcp:HOST:888,tcp:LOCAL:999")
def test_parsing_all_disabled(self): def test_parsing_all_disabled(self):
""" """