(length)
| 135 | |
| 136 | def test_bad_packed_length(self): |
| 137 | def assertBadLength(length): |
| 138 | addr = b'\0' * length |
| 139 | msg = "%r (len %d != 4) is not permitted as an IPv4 address" |
| 140 | with self.assertAddressError(re.escape(msg % (addr, length))): |
| 141 | self.factory(addr) |
| 142 | |
| 143 | assertBadLength(3) |
| 144 | assertBadLength(5) |
nothing calls this directly
no test coverage detected