(self)
| 1090 | |
| 1091 | class 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 | |
| 1123 | class MiscTestCase(unittest.TestCase): |
nothing calls this directly
no test coverage detected