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