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

Method test_bytesio

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

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 7

_createMethod · 0.95
getvalueMethod · 0.95
BytesIOClass · 0.90
subTestMethod · 0.45
dumpMethod · 0.45
loadMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected