Lines Matching refs:confirm

49     def confirm(self, test, testname = "Test"):  member in MinidomTest
54 self.confirm(t == s, "looking for %s, found %s" % (repr(s), repr(t)))
59 self.confirm(isinstance(dom,Document))
63 self.confirm(dom.getElementsByTagName("LI") == \
73 self.confirm(len(root.childNodes) == 2
85 self.confirm(len(root.childNodes) == 3
97 self.confirm(len(root.childNodes) == 4
126 self.confirm(tuple(dom.documentElement.childNodes) ==
134 self.confirm(tuple(dom.documentElement.childNodes) ==
143 self.confirm(dom.documentElement.childNodes[-1].nodeName == "#comment")
144 self.confirm(dom.documentElement.childNodes[-1].data == "Hello")
150 self.confirm(tuple(dom.documentElement.childNodes) ==
160 self.confirm(tuple(dom.documentElement.childNodes) == (c1, c2, c3),
192 self.confirm(a.ownerDocument is dom,
194 self.confirm(a.ownerElement is elem,
196 self.confirm(a.value == "bar",
198 self.confirm(a.nodeValue == "bar",
205 self.confirm(dom)# should not be zero
207 self.confirm(not dom.childNodes[-1].childNodes)
217 self.confirm(dom.documentElement)
224 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAA")
226 self.confirm(a.ownerDocument is dom,
228 self.confirm(a.ownerElement is dom.documentElement,
237 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAB")
245 self.confirm(child.getAttribute("def") == "ghi")
246 self.confirm(child.attributes["def"].value == "ghi")
249 self.confirm(child.getAttribute("jkl") == "mno")
250 self.confirm(child.attributes["jkl"].value == "mno")
252 self.confirm(len(child.attributes) == 2)
255 self.confirm(child.getAttribute("def") == "newval")
256 self.confirm(child.attributes["def"].value == "newval")
258 self.confirm(len(child.attributes) == 2)
265 self.confirm(len(child.attributes) == 0)
267 self.confirm(len(child.attributes) == 1)
269 self.confirm(len(child.attributes) == 0)
277 self.confirm(len(child.attributes) == 1)
279 self.confirm(len(child.attributes) == 0)
289 self.confirm(len(child.attributes) == 2)
291 self.confirm(len(child.attributes) == 1)
298 self.confirm(len(child.attributes) == 1)
301 self.confirm(len(child.attributes) == 0
309 self.confirm(len(el.attributes) == 1)
314 self.confirm(len(el.attributes) == 1
320 self.confirm(len(el.attributes) == 1
326 self.confirm(len(el.attributes) == 2
334 self.confirm(len(el.attributes) == 2
363 self.confirm(len(elems) == 1
374 self.confirm(len(nodelist) == 0)
398 self.confirm(string1 == string2)
406 self.confirm(string1 == string2)
415 self.confirm(string1 == string2)
416 self.confirm("slash:abc" in string1)
423 self.confirm(str(node) == repr(node))
433 self.confirm(str == domstr)
440 self.confirm(domstr == str.replace("\n", "\r\n"))
445 self.confirm(pi.target == "mypi"
499 self.confirm(a1.isSameNode(a2))
508 self.confirm(a1.isSameNode(a2))
545 self.confirm(keys1 == keys2, "clone of element has same attribute keys")
549 self.confirm(a1 is not a2
555 self.confirm(a2.ownerElement is e2,
572 self.confirm(len(clone.childNodes) == 0
581 self.confirm(len(clone.childNodes) == 1
596 self.confirm(doc2 is None,
608 self.confirm(not (doc.isSameNode(doc2) or doc2.isSameNode(doc)),
610 self.confirm(len(doc.childNodes) == len(doc2.childNodes),
612 self.confirm(doc2.documentElement.nodeType == Node.ELEMENT_NODE,
614 self.confirm(doc2.documentElement.ownerDocument.isSameNode(doc2),
616 self.confirm(not doc.documentElement.isSameNode(doc2.documentElement),
620 self.confirm(doc2.doctype.nodeType == Node.DOCUMENT_TYPE_NODE,
622 self.confirm(doc2.doctype.ownerDocument.isSameNode(doc2))
623 self.confirm(not doc.doctype.isSameNode(doc2.doctype))
628 self.confirm(clone is not None
641 self.confirm((not se.isSameNode(ce))
653 self.confirm((not sn.isSameNode(cn))
662 self.confirm(clone is None, "testCloneDocumentTypeDeepNotOk")
667 self.confirm(clone is not None
681 self.confirm(clone is None, "testCloneDocumentTypeShallowNotOk")
713 self.confirm(not clone.isSameNode(attr))
714 self.confirm(not attr.isSameNode(clone))
715 self.confirm(clone.ownerElement is None,
717 self.confirm(clone.ownerDocument.isSameNode(attr.ownerDocument),
719 self.confirm(clone.specified,
733 self.confirm(clone.target == pi.target
747 self.confirm(len(root.childNodes) == 2
751 self.confirm(len(root.childNodes) == 1
762 self.confirm(len(root.childNodes) == 0
773 self.confirm(len(root.childNodes) == 3
777 self.confirm(len(root.childNodes) == 2
793 self.confirm(len(root.childNodes) == 2
797 self.confirm(len(root.childNodes) == 1
811 self.confirm(len(root.childNodes) == 2
815 self.confirm(len(root.childNodes) == 1
830 self.confirm(len(root.childNodes) == 3
834 self.confirm(len(root.childNodes) == 2
852 self.confirm(len(root.childNodes) == 5
856 self.confirm(len(root.childNodes) == 1
889 self.confirm(len(root.childNodes) == 3
899 self.confirm(len(root.childNodes) == 2
908 self.confirm(root.childNodes[0].childNodes[1].data == "tx"
912 self.confirm(root.childNodes[0].childNodes[1].nextSibling is None
941 self.confirm(node.childNodes[-1].nextSibling is None,
949 self.confirm(pi.nextSibling is text and
966 self.confirm(root.parentNode is doc and
977 self.confirm(children[0] is children.item(0)
1004 self.confirm(text1.previousSibling is None and
1013 self.confirm(root.parentNode is doc and
1022 self.confirm(doc.toxml() == u'<?xml version="1.0" ?><foo>\u20ac</foo>'
1046 self.confirm(n.getUserData("foo") is None)
1048 self.confirm(n.getUserData("foo") is None)
1051 self.confirm(n.getUserData("foo") == 12)
1052 self.confirm(n.getUserData("bar") == 13)
1054 self.confirm(n.getUserData("foo") is None)
1055 self.confirm(n.getUserData("bar") == 13)
1060 self.confirm(handler.called
1083 self.confirm(attr.name == "b"
1097 self.confirm(attr.name == "c"
1113 self.confirm(attr.name == "p:d"
1132 self.confirm(attr.name == "e"
1158 self.confirm(elem.tagName == "a"
1167 self.confirm(elem.tagName == "b"
1176 self.confirm(elem.tagName == "p:c"
1185 self.confirm(elem.tagName == "d"
1245 self.confirm(e.parentNode is elem, "Before replaceChild()")
1248 self.confirm(e.parentNode is elem, "After replaceChild()")
1265 self.confirm(len(elem.childNodes) == 3)
1271 self.confirm(len(elem.childNodes) == 5)
1276 self.confirm(text is None
1303 self.confirm(t.name is None
1309 self.confirm(hasattr(t, "name")
1317 self.confirm(doc.getElementById("v") is None
1321 self.confirm(e.isSameNode(doc.getElementById("v"))
1325 self.confirm(e.isSameNode(doc.getElementById("v"))
1333 self.confirm(doc.getElementById("v") is None
1340 self.confirm(e.isSameNode(doc.getElementById("w"))
1353 self.confirm(doc.getElementById("v") is None
1357 self.confirm(e.isSameNode(doc.getElementById("v"))
1361 self.confirm(e.isSameNode(doc.getElementById("v"))
1369 self.confirm(e.isSameNode(doc.getElementById("w")))
1370 self.confirm(not a1.isId)
1371 self.confirm(a2.isId)
1372 self.confirm(not a3.isId)
1373 self.confirm(doc.getElementById("v") is None)
1376 self.confirm(e.isSameNode(doc.getElementById("w"))
1389 self.confirm(doc.getElementById("v") is None
1393 self.confirm(e.isSameNode(doc.getElementById("v"))
1397 self.confirm(e.isSameNode(doc.getElementById("v"))
1405 self.confirm(e.isSameNode(doc.getElementById("w")))
1406 self.confirm(not a1.isId)
1407 self.confirm(a2.isId)
1408 self.confirm(not a3.isId)
1409 self.confirm(doc.getElementById("v") is None)
1412 self.confirm(e.isSameNode(doc.getElementById("w"))
1428 self.confirm(n1.nodeType == n2.nodeType
1438 self.confirm(len(n1.entities) == len(n2.entities)
1444 self.confirm(no1.name == no2.name
1451 self.confirm(e1.notationName == e2.notationName
1456 self.confirm(n1.ownerDocument.isSameNode(doc)
1470 self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)