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

Method test_large_ints_rejected

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

Source from the content-addressed store, hash-verified

129 self.factory(-1)
130
131 def test_large_ints_rejected(self):
132 msg = "%d (>= 2**32) is not permitted as an IPv4 address"
133 with self.assertAddressError(re.escape(msg % 2**32)):
134 self.factory(2**32)
135
136 def test_bad_packed_length(self):
137 def assertBadLength(length):

Callers

nothing calls this directly

Calls 3

assertAddressErrorMethod · 0.80
escapeMethod · 0.80
factoryMethod · 0.45

Tested by

no test coverage detected