MCPcopy Index your code
hub / github.com/python/cpython / test_negative_ints_rejected

Method test_negative_ints_rejected

Lib/test/test_ipaddress.py:165–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

163 self.assertInstancesEqual(addr, "c0a8:1::")
164
165 def test_negative_ints_rejected(self):
166 msg = "-1 (< 0) is not permitted as an IPv6 address"
167 with self.assertAddressError(re.escape(msg)):
168 self.factory(-1)
169
170 def test_large_ints_rejected(self):
171 msg = "%d (>= 2**128) is not permitted as an IPv6 address"

Callers

nothing calls this directly

Calls 3

assertAddressErrorMethod · 0.80
escapeMethod · 0.80
factoryMethod · 0.45

Tested by

no test coverage detected