Add a check for default in TestProtocol.test_check_local()
This commit is contained in:
parent
65d2a37cb2
commit
27e566140d
|
@ -63,6 +63,8 @@ class TestProtocol(TestSocketInet):
|
|||
|
||||
def test_check_local(self):
|
||||
"""Check the logic of TCPConnection.local"""
|
||||
self.assertFalse(
|
||||
protocol.checkIPAddress(protocol.encodeHost('127.0.0.1')))
|
||||
self.assertTrue(
|
||||
protocol.checkIPAddress(protocol.encodeHost('127.0.0.1'), True))
|
||||
self.assertTrue(
|
||||
|
|
Reference in New Issue
Block a user