Lines Matching refs:doc2
633 doc2 = dom2.documentElement
634 self.assertFalse(doc2.hasChildNodes())
693 doc2 = doc.cloneNode(0)
694 self.confirm(doc2 is None,
705 doc2 = doc.cloneNode(1)
706 self.confirm(not (doc.isSameNode(doc2) or doc2.isSameNode(doc)),
708 self.confirm(len(doc.childNodes) == len(doc2.childNodes),
710 self.confirm(doc2.documentElement.nodeType == Node.ELEMENT_NODE,
712 self.confirm(doc2.documentElement.ownerDocument.isSameNode(doc2),
714 self.confirm(not doc.documentElement.isSameNode(doc2.documentElement),
718 self.confirm(doc2.doctype.nodeType == Node.DOCUMENT_TYPE_NODE,
720 self.confirm(doc2.doctype.ownerDocument.isSameNode(doc2))
721 self.confirm(not doc.doctype.isSameNode(doc2.doctype))
783 doc2 = parseString("<doc/>")
784 self.assertRaises(xml.dom.NotSupportedErr, doc1.importNode, doc2, deep)
1206 doc2 = parseString("<doc/>")
1207 self.assertRaises(xml.dom.WrongDocumentErr, doc2.renameNode, node,
1550 def assert_recursive_equal(self, doc, doc2): argument
1551 stack = [(doc, doc2)]
1583 self.assertTrue(n2.ownerDocument.isSameNode(doc2))
1591 doc2 = pickle.loads(s)
1592 self.assert_recursive_equal(doc, doc2)
1596 doc2 = copy.deepcopy(doc)
1597 self.assert_recursive_equal(doc, doc2)
1608 doc2 = parseString(doc.toxml())
1609 self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)