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

Method testPickledDocument

Lib/test/test_minidom.py:1705–1710  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1703 stack.append((n1.childNodes[i], n2.childNodes[i]))
1704
1705 def testPickledDocument(self):
1706 doc = parseString(sample)
1707 for proto in range(2, pickle.HIGHEST_PROTOCOL + 1):
1708 s = pickle.dumps(doc, proto)
1709 doc2 = pickle.loads(s)
1710 self.assert_recursive_equal(doc, doc2)
1711
1712 def testDeepcopiedDocument(self):
1713 doc = parseString(sample)

Callers

nothing calls this directly

Calls 4

parseStringFunction · 0.90
dumpsMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected