summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ipaddress.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-06-11 19:12:36 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-06-11 19:12:36 (GMT)
commit24b102e6e86df006e90e2b73353e903840ea0327 (patch)
tree48f08cdd662f131766463f05dc703f8ef34b8ca4 /Lib/test/test_ipaddress.py
parent4da945f361cda03104548f49bad690a54b0209f7 (diff)
parent742192a4fea88b49633288fb6e5bea68cf0bdcc0 (diff)
downloadcpython-24b102e6e86df006e90e2b73353e903840ea0327.zip
cpython-24b102e6e86df006e90e2b73353e903840ea0327.tar.gz
cpython-24b102e6e86df006e90e2b73353e903840ea0327.tar.bz2
Issue #21386: Merge from 3.5
Diffstat (limited to 'Lib/test/test_ipaddress.py')
-rw-r--r--Lib/test/test_ipaddress.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_ipaddress.py b/Lib/test/test_ipaddress.py
index 3edea08..be62fad 100644
--- a/Lib/test/test_ipaddress.py
+++ b/Lib/test/test_ipaddress.py
@@ -1626,6 +1626,9 @@ class IpaddrUnitTest(unittest.TestCase):
self.assertEqual(False,
ipaddress.ip_address('169.255.100.200').is_link_local)
+ self.assertTrue(ipaddress.ip_address('192.0.7.1').is_global)
+ self.assertFalse(ipaddress.ip_address('203.0.113.1').is_global)
+
self.assertEqual(True,
ipaddress.ip_address('127.100.200.254').is_loopback)
self.assertEqual(True, ipaddress.ip_address('127.42.0.0').is_loopback)