def test_to_plist(self): # example data taken from: # https://docs.python.org/3/library/plistlib.html#examples d = IODict(self._dict) s = d.to_plist() # print(s) self.assertEqual(d, IODict.from_plist(s))
def test_to_plist_file(self): d = IODict(self._dict) filepath = self.output_path('test_to_plist_file.plist') d.to_plist(filepath=filepath) self.assertFileExists(filepath) self.assertEqual(d, IODict.from_plist(filepath))