Add a check for default in TestProtocol.test_check_local()

This commit is contained in:
Lee Miller 2024-07-03 01:25:47 +03:00
parent 65d2a37cb2
commit 27e566140d
Signed by untrusted user: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -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(