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

Method test_modified_uid_negative

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

Source from the content-addressed store, hash-verified

841 plistlib.loads(b"these are not plist file contents")
842
843 def test_modified_uid_negative(self):
844 neg_uid = UID(1)
845 neg_uid.data = -1 # dodge the negative check in the constructor
846 with self.assertRaises(ValueError):
847 plistlib.dumps(neg_uid, fmt=plistlib.FMT_BINARY)
848
849 def test_modified_uid_huge(self):
850 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