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

Method test_invalid_uid

Lib/test/test_plistlib.py:467–473  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

465 self.assertRaises(TypeError, plistlib.dumps, pl, fmt=fmt)
466
467 def test_invalid_uid(self):
468 with self.assertRaises(TypeError):
469 UID("not an int")
470 with self.assertRaises(ValueError):
471 UID(2 ** 64)
472 with self.assertRaises(ValueError):
473 UID(-19)
474
475 def test_int(self):
476 for pl in [0, 2**8-1, 2**8, 2**16-1, 2**16, 2**32-1, 2**32,

Callers

nothing calls this directly

Calls 2

UIDClass · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected