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

Method test_keyed_archive_data

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

Source from the content-addressed store, hash-verified

1090
1091class TestKeyedArchive(unittest.TestCase):
1092 def test_keyed_archive_data(self):
1093 # This is the structure of a NSKeyedArchive packed plist
1094 data = {
1095 '$version': 100000,
1096 '$objects': [
1097 '$null', {
1098 'pytype': 1,
1099 '$class': UID(2),
1100 'NS.string': 'KeyArchive UID Test'
1101 },
1102 {
1103 '$classname': 'OC_BuiltinPythonUnicode',
1104 '$classes': [
1105 'OC_BuiltinPythonUnicode',
1106 'OC_PythonUnicode',
1107 'NSString',
1108 'NSObject'
1109 ],
1110 '$classhints': [
1111 'OC_PythonString', 'NSString'
1112 ]
1113 }
1114 ],
1115 '$archiver': 'NSKeyedArchiver',
1116 '$top': {
1117 'root': UID(1)
1118 }
1119 }
1120 self.assertEqual(plistlib.loads(TESTDATA["KEYED_ARCHIVE"]), data)
1121
1122
1123class MiscTestCase(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

UIDClass · 0.90
assertEqualMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected