Home | History | Annotate | Download | only in test

Lines Matching refs:Node

37 from xml.dom import minidom, Node
53 Asserts that actual_node (a DOM node object) is equivalent to
54 expected_node (another DOM node object), in that either both of
70 if expected_node.nodeType == Node.CDATA_SECTION_NODE:
71 self.assertEquals(Node.CDATA_SECTION_NODE, actual_node.nodeType)
75 self.assertEquals(Node.ELEMENT_NODE, actual_node.nodeType)
76 self.assertEquals(Node.ELEMENT_NODE, expected_node.nodeType)
127 attributes are encountered, or if any other type of node is encountered.
132 if child.nodeType == Node.ELEMENT_NODE:
138 elif child.nodeType in [Node.TEXT_NODE, Node.CDATA_SECTION_NODE]:
140 if (child.nodeType == Node.CDATA_SECTION_NODE or
147 self.fail('Encountered unexpected node type %d' % child.nodeType)
186 if child.nodeType == Node.CDATA_SECTION_NODE:
193 if child.nodeType == Node.ELEMENT_NODE: