diff options
author | Peter Moody <python@hda3.com> | 2013-10-22 19:36:21 (GMT) |
---|---|---|
committer | Peter Moody <python@hda3.com> | 2013-10-22 19:36:21 (GMT) |
commit | be9c1b133b78754a5a27e30bd35944d75647ee4c (patch) | |
tree | 5f78177268b31576224e8bcb1eb31812c77af199 /Lib/test/test_ipaddress.py | |
parent | a4df90ceb92f9d3ad8e3dd968a22fe732a41c159 (diff) | |
download | cpython-be9c1b133b78754a5a27e30bd35944d75647ee4c.zip cpython-be9c1b133b78754a5a27e30bd35944d75647ee4c.tar.gz cpython-be9c1b133b78754a5a27e30bd35944d75647ee4c.tar.bz2 |
#17400: fix documentation, add cache to is_global and correctly handle 100.64.0.0/10
Diffstat (limited to 'Lib/test/test_ipaddress.py')
-rw-r--r-- | Lib/test/test_ipaddress.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_ipaddress.py b/Lib/test/test_ipaddress.py index c2a2009..25f190c 100644 --- a/Lib/test/test_ipaddress.py +++ b/Lib/test/test_ipaddress.py @@ -1320,6 +1320,7 @@ class IpaddrUnitTest(unittest.TestCase): '127.42.0.0/16').is_loopback) self.assertEqual(False, ipaddress.ip_network('128.0.0.0').is_loopback) self.assertEqual(True, ipaddress.ip_network('100.64.0.0/10').is_private) + self.assertEqual(False, ipaddress.ip_network('100.64.0.0/10').is_global) self.assertEqual(True, ipaddress.ip_network('192.0.2.128/25').is_private) self.assertEqual(True, |