mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-01 07:49:10 +00:00
test Address __str__
This commit is contained in:
parent
e805f2d066
commit
bdb62101bb
@ -603,6 +603,7 @@ class TestAddress:
|
||||
assert a.use_ipv6
|
||||
b = tcp.Address("foo.com", True)
|
||||
assert not a == b
|
||||
assert str(b) == str(tuple("foo.com"))
|
||||
c = tcp.Address("localhost", True)
|
||||
assert a == c
|
||||
assert not a != c
|
||||
|
Loading…
Reference in New Issue
Block a user