Lines Matching refs:doc2
642 doc2 = dom2.documentElement
643 self.assertFalse(doc2.hasChildNodes())
702 doc2 = doc.cloneNode(0)
703 self.confirm(doc2 is None,
714 doc2 = doc.cloneNode(1)
715 self.confirm(not (doc.isSameNode(doc2) or doc2.isSameNode(doc)),
717 self.confirm(len(doc.childNodes) == len(doc2.childNodes),
719 self.confirm(doc2.documentElement.nodeType == Node.ELEMENT_NODE,
721 self.confirm(doc2.documentElement.ownerDocument.isSameNode(doc2),
723 self.confirm(not doc.documentElement.isSameNode(doc2.documentElement),
727 self.confirm(doc2.doctype.nodeType == Node.DOCUMENT_TYPE_NODE,
729 self.confirm(doc2.doctype.ownerDocument.isSameNode(doc2))
730 self.confirm(not doc.doctype.isSameNode(doc2.doctype))
792 doc2 = parseString("<doc/>")
793 self.assertRaises(xml.dom.NotSupportedErr, doc1.importNode, doc2, deep)
1148 doc2 = parseString("<doc/>")
1149 self.assertRaises(xml.dom.WrongDocumentErr, doc2.renameNode, node,
1492 def assert_recursive_equal(self, doc, doc2): argument
1493 stack = [(doc, doc2)]
1525 self.assertTrue(n2.ownerDocument.isSameNode(doc2))
1533 doc2 = pickle.loads(s)
1534 self.assert_recursive_equal(doc, doc2)
1538 doc2 = copy.deepcopy(doc)
1539 self.assert_recursive_equal(doc, doc2)
1550 doc2 = parseString(doc.toxml())
1551 self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)