MCPcopy Index your code
hub / github.com/python/cpython / test_appleformattingfromliteral

Method test_appleformattingfromliteral

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

Source from the content-addressed store, hash-verified

645 "generated data was not identical to Apple's output")
646
647 def test_appleformattingfromliteral(self):
648 self.maxDiff = None
649 for fmt in ALL_FORMATS:
650 with self.subTest(fmt=fmt):
651 pl = self._create(fmt=fmt)
652 pl2 = plistlib.loads(TESTDATA[fmt], fmt=fmt)
653 self.assertEqual(dict(pl), dict(pl2),
654 "generated data was not identical to Apple's output")
655 pl2 = plistlib.loads(TESTDATA[fmt])
656 self.assertEqual(dict(pl), dict(pl2),
657 "generated data was not identical to Apple's output")
658
659 def test_bytesio(self):
660 for fmt in ALL_FORMATS:

Callers

nothing calls this directly

Calls 4

_createMethod · 0.95
subTestMethod · 0.45
loadsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected