• Home
  • Raw
  • Download

Lines Matching refs:confirm

56     def confirm(self, test, testname = "Test"):  member in MinidomTest
61 self.confirm(t == s, "looking for %s, found %s" % (repr(s), repr(t)))
66 self.confirm(isinstance(dom,Document))
70 self.confirm(dom.getElementsByTagName("LI") == \
80 self.confirm(len(root.childNodes) == 2
92 self.confirm(len(root.childNodes) == 3
104 self.confirm(len(root.childNodes) == 4
133 self.confirm(tuple(dom.documentElement.childNodes) ==
141 self.confirm(tuple(dom.documentElement.childNodes) ==
150 self.confirm(dom.documentElement.childNodes[-1].nodeName == "#comment")
151 self.confirm(dom.documentElement.childNodes[-1].data == "Hello")
157 self.confirm(tuple(dom.documentElement.childNodes) ==
167 self.confirm(tuple(dom.documentElement.childNodes) == (c1, c2, c3),
199 self.confirm(a.ownerDocument is dom,
201 self.confirm(a.ownerElement is elem,
203 self.confirm(a.value == "bar",
205 self.confirm(a.nodeValue == "bar",
212 self.confirm(dom)# should not be zero
214 self.confirm(not dom.childNodes[-1].childNodes)
224 self.confirm(dom.documentElement)
231 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAA")
233 self.confirm(a.ownerDocument is dom,
235 self.confirm(a.ownerElement is dom.documentElement,
244 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAB")
252 self.confirm(child.getAttribute("def") == "ghi")
253 self.confirm(child.attributes["def"].value == "ghi")
256 self.confirm(child.getAttribute("jkl") == "mno")
257 self.confirm(child.attributes["jkl"].value == "mno")
259 self.confirm(len(child.attributes) == 2)
262 self.confirm(child.getAttribute("def") == "newval")
263 self.confirm(child.attributes["def"].value == "newval")
265 self.confirm(len(child.attributes) == 2)
272 self.confirm(len(child.attributes) == 0)
274 self.confirm(len(child.attributes) == 1)
276 self.confirm(len(child.attributes) == 0)
284 self.confirm(len(child.attributes) == 1)
286 self.confirm(len(child.attributes) == 0)
296 self.confirm(len(child.attributes) == 2)
298 self.confirm(len(child.attributes) == 1)
305 self.confirm(len(child.attributes) == 1)
308 self.confirm(len(child.attributes) == 0
316 self.confirm(len(el.attributes) == 1)
321 self.confirm(len(el.attributes) == 1
327 self.confirm(len(el.attributes) == 1
333 self.confirm(len(el.attributes) == 2
341 self.confirm(len(el.attributes) == 2
357 self.confirm(len(elems) == 1
368 self.confirm(len(nodelist) == 0)
392 self.confirm(string1 == string2)
400 self.confirm(string1 == string2)
409 self.confirm(string1 == string2)
410 self.confirm("slash:abc" in string1)
417 self.confirm(str(node) == repr(node))
425 self.confirm(str == domstr)
432 self.confirm(domstr == str.replace("\n", "\r\n"))
471 self.confirm(pi.target == "mypi"
497 self.confirm(a1.isSameNode(a2))
506 self.confirm(a1.isSameNode(a2))
517 self.confirm(keys1 == keys2, "clone of element has same attribute keys")
521 self.confirm(a1 is not a2
527 self.confirm(a2.ownerElement is e2,
544 self.confirm(len(clone.childNodes) == 0
553 self.confirm(len(clone.childNodes) == 1
568 self.confirm(doc2 is None,
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))
600 self.confirm(clone is not None
613 self.confirm((not se.isSameNode(ce))
625 self.confirm((not sn.isSameNode(cn))
634 self.confirm(clone is None, "testCloneDocumentTypeDeepNotOk")
639 self.confirm(clone is not None
653 self.confirm(clone is None, "testCloneDocumentTypeShallowNotOk")
685 self.confirm(not clone.isSameNode(attr))
686 self.confirm(not attr.isSameNode(clone))
687 self.confirm(clone.ownerElement is None,
689 self.confirm(clone.ownerDocument.isSameNode(attr.ownerDocument),
691 self.confirm(clone.specified,
705 self.confirm(clone.target == pi.target
719 self.confirm(len(root.childNodes) == 2
723 self.confirm(len(root.childNodes) == 1
734 self.confirm(len(root.childNodes) == 0
745 self.confirm(len(root.childNodes) == 3
749 self.confirm(len(root.childNodes) == 2
765 self.confirm(len(root.childNodes) == 2
769 self.confirm(len(root.childNodes) == 1
783 self.confirm(len(root.childNodes) == 2
787 self.confirm(len(root.childNodes) == 1
802 self.confirm(len(root.childNodes) == 3
806 self.confirm(len(root.childNodes) == 2
824 self.confirm(len(root.childNodes) == 5
828 self.confirm(len(root.childNodes) == 1
861 self.confirm(len(root.childNodes) == 3
871 self.confirm(len(root.childNodes) == 2
880 self.confirm(root.childNodes[0].childNodes[1].data == "tx"
884 self.confirm(root.childNodes[0].childNodes[1].nextSibling is None
913 self.confirm(node.childNodes[-1].nextSibling is None,
921 self.confirm(pi.nextSibling is text and
938 self.confirm(root.parentNode is doc and
949 self.confirm(children[0] is children.item(0)
976 self.confirm(text1.previousSibling is None and
985 self.confirm(root.parentNode is doc and
994 self.confirm(doc.toxml() == u'<?xml version="1.0" ?><foo>\u20ac</foo>'
1018 self.confirm(n.getUserData("foo") is None)
1020 self.confirm(n.getUserData("foo") is None)
1023 self.confirm(n.getUserData("foo") == 12)
1024 self.confirm(n.getUserData("bar") == 13)
1026 self.confirm(n.getUserData("foo") is None)
1027 self.confirm(n.getUserData("bar") == 13)
1032 self.confirm(handler.called
1055 self.confirm(attr.name == "b"
1069 self.confirm(attr.name == "c"
1085 self.confirm(attr.name == "p:d"
1104 self.confirm(attr.name == "e"
1130 self.confirm(elem.tagName == "a"
1139 self.confirm(elem.tagName == "b"
1148 self.confirm(elem.tagName == "p:c"
1157 self.confirm(elem.tagName == "d"
1217 self.confirm(e.parentNode is elem, "Before replaceChild()")
1220 self.confirm(e.parentNode is elem, "After replaceChild()")
1237 self.confirm(len(elem.childNodes) == 3)
1243 self.confirm(len(elem.childNodes) == 5)
1248 self.confirm(text is None
1275 self.confirm(t.name is None
1281 self.confirm(hasattr(t, "name")
1289 self.confirm(doc.getElementById("v") is None
1293 self.confirm(e.isSameNode(doc.getElementById("v"))
1297 self.confirm(e.isSameNode(doc.getElementById("v"))
1305 self.confirm(doc.getElementById("v") is None
1312 self.confirm(e.isSameNode(doc.getElementById("w"))
1325 self.confirm(doc.getElementById("v") is None
1329 self.confirm(e.isSameNode(doc.getElementById("v"))
1333 self.confirm(e.isSameNode(doc.getElementById("v"))
1341 self.confirm(e.isSameNode(doc.getElementById("w")))
1342 self.confirm(not a1.isId)
1343 self.confirm(a2.isId)
1344 self.confirm(not a3.isId)
1345 self.confirm(doc.getElementById("v") is None)
1348 self.confirm(e.isSameNode(doc.getElementById("w"))
1361 self.confirm(doc.getElementById("v") is None
1365 self.confirm(e.isSameNode(doc.getElementById("v"))
1369 self.confirm(e.isSameNode(doc.getElementById("v"))
1377 self.confirm(e.isSameNode(doc.getElementById("w")))
1378 self.confirm(not a1.isId)
1379 self.confirm(a2.isId)
1380 self.confirm(not a3.isId)
1381 self.confirm(doc.getElementById("v") is None)
1384 self.confirm(e.isSameNode(doc.getElementById("w"))
1445 self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)