Lines Matching refs:doc2
567 doc2 = doc.cloneNode(0)
568 self.confirm(doc2 is None,
579 doc2 = doc.cloneNode(1)
580 self.confirm(not (doc.isSameNode(doc2) or doc2.isSameNode(doc)),
582 self.confirm(len(doc.childNodes) == len(doc2.childNodes),
584 self.confirm(doc2.documentElement.nodeType == Node.ELEMENT_NODE,
586 self.confirm(doc2.documentElement.ownerDocument.isSameNode(doc2),
588 self.confirm(not doc.documentElement.isSameNode(doc2.documentElement),
592 self.confirm(doc2.doctype.nodeType == Node.DOCUMENT_TYPE_NODE,
594 self.confirm(doc2.doctype.ownerDocument.isSameNode(doc2))
595 self.confirm(not doc.doctype.isSameNode(doc2.doctype))
657 doc2 = parseString("<doc/>")
658 self.assertRaises(xml.dom.NotSupportedErr, doc1.importNode, doc2, deep)
1043 doc2 = parseString("<doc/>")
1044 self.assertRaises(xml.dom.WrongDocumentErr, doc2.renameNode, node,
1387 def assert_recursive_equal(self, doc, doc2): argument
1388 stack = [(doc, doc2)]
1420 self.assertTrue(n2.ownerDocument.isSameNode(doc2))
1428 doc2 = pickle.loads(s)
1429 self.assert_recursive_equal(doc, doc2)
1433 doc2 = copy.deepcopy(doc)
1434 self.assert_recursive_equal(doc, doc2)
1444 doc2 = parseString(doc.toxml())
1445 self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)