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

Method test_modified_uid_negative

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

Source from the content-addressed store, hash-verified

917 plistlib.loads(b"these are not plist file contents")
918
919 def test_modified_uid_negative(self):
920 neg_uid = UID(1)
921 neg_uid.data = -1 # dodge the negative check in the constructor
922 with self.assertRaises(ValueError):
923 plistlib.dumps(neg_uid, fmt=plistlib.FMT_BINARY)
924
925 def test_modified_uid_huge(self):
926 huge_uid = UID(1)

Callers

nothing calls this directly

Calls 3

UIDClass · 0.90
assertRaisesMethod · 0.45
dumpsMethod · 0.45

Tested by

no test coverage detected