MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_invalid_uid

Method test_invalid_uid

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

Source from the content-addressed store, hash-verified

466 self.assertRaises(TypeError, plistlib.dumps, pl, fmt=fmt)
467
468 def test_invalid_uid(self):
469 with self.assertRaises(TypeError):
470 UID("not an int")
471 with self.assertRaises(ValueError):
472 UID(2 ** 64)
473 with self.assertRaises(ValueError):
474 UID(-19)
475
476 def test_int(self):
477 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