test Address __str__

This commit is contained in:
Thomas Kriechbaumer 2015-05-28 17:45:54 +02:00
parent e805f2d066
commit bdb62101bb

View File

@ -603,6 +603,7 @@ class TestAddress:
assert a.use_ipv6 assert a.use_ipv6
b = tcp.Address("foo.com", True) b = tcp.Address("foo.com", True)
assert not a == b assert not a == b
assert str(b) == str(tuple("foo.com"))
c = tcp.Address("localhost", True) c = tcp.Address("localhost", True)
assert a == c assert a == c
assert not a != c assert not a != c