From 27e566140d1c119856d84235ea20142af3769e42 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Wed, 3 Jul 2024 01:25:47 +0300 Subject: [PATCH] Add a check for default in TestProtocol.test_check_local() --- src/tests/test_protocol.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/test_protocol.py b/src/tests/test_protocol.py index e3137b25..69e1e82f 100644 --- a/src/tests/test_protocol.py +++ b/src/tests/test_protocol.py @@ -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( -- 2.45.1