Add a check for default in TestProtocol.test_check_local() #2261

Merged
PeterSurda merged 1 commits from gitea-107 into v0.6 2024-07-04 11:34:08 +02:00
Showing only changes of commit 27e566140d - Show all commits

View File

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