summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorCheryl Sabella <cheryl.sabella@gmail.com>2018-03-21 00:09:15 (GMT)
committerXiang Zhang <angwerzx@126.com>2018-03-21 00:09:15 (GMT)
commit5609b78392d59c7362ef8aa5c4a4529325f01f27 (patch)
treebedffdeaa9e20886ac32914f80e1b00f76035e9c /Lib
parent4be79f29463f632cd8b48486feadc2ed308fb520 (diff)
downloadcpython-5609b78392d59c7362ef8aa5c4a4529325f01f27.zip
cpython-5609b78392d59c7362ef8aa5c4a4529325f01f27.tar.gz
cpython-5609b78392d59c7362ef8aa5c4a4529325f01f27.tar.bz2
bpo-18802: Add more details to ipaddress documentation (GH-6083)
Original patch by Jon Foster and Berker Peksag.
Diffstat (limited to 'Lib')
-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 dbf68b3..a5aeb79 100644
--- a/Lib/test/test_ipaddress.py
+++ b/Lib/test/test_ipaddress.py
@@ -404,6 +404,9 @@ class AddressTestCase_v6(BaseTestCase, CommonTestMixin_v6):
class NetmaskTestMixin_v4(CommonTestMixin_v4):
"""Input validation on interfaces and networks is very similar"""
+ def test_no_mask(self):
+ self.assertEqual(str(self.factory('1.2.3.4')), '1.2.3.4/32')
+
def test_split_netmask(self):
addr = "1.2.3.4/32/24"
with self.assertAddressError("Only one '/' permitted in %r" % addr):