(self)
| 657 | "generated data was not identical to Apple's output") |
| 658 | |
| 659 | def test_bytesio(self): |
| 660 | for fmt in ALL_FORMATS: |
| 661 | with self.subTest(fmt=fmt): |
| 662 | b = BytesIO() |
| 663 | pl = self._create(fmt=fmt) |
| 664 | plistlib.dump(pl, b, fmt=fmt) |
| 665 | pl2 = plistlib.load(BytesIO(b.getvalue()), fmt=fmt) |
| 666 | self.assertEqual(dict(pl), dict(pl2)) |
| 667 | pl2 = plistlib.load(BytesIO(b.getvalue())) |
| 668 | self.assertEqual(dict(pl), dict(pl2)) |
| 669 | |
| 670 | def test_keysort_bytesio(self): |
| 671 | pl = collections.OrderedDict() |