Lines Matching refs:confirm

54     def confirm(self, test, testname = "Test"):  member in MinidomTest
59 self.confirm(t == s, "looking for %r, found %r" % (s, t))
70 self.confirm(isinstance(dom, Document))
76 self.confirm(isinstance(dom, Document))
80 self.confirm(dom.getElementsByTagName("LI") == \
90 self.confirm(len(root.childNodes) == 2
102 self.confirm(len(root.childNodes) == 3
114 self.confirm(len(root.childNodes) == 4
143 self.confirm(tuple(dom.documentElement.childNodes) ==
151 self.confirm(tuple(dom.documentElement.childNodes) ==
160 self.confirm(dom.documentElement.childNodes[-1].nodeName == "#comment")
161 self.confirm(dom.documentElement.childNodes[-1].data == "Hello")
167 self.confirm(tuple(dom.documentElement.childNodes) ==
177 self.confirm(tuple(dom.documentElement.childNodes) == (c1, c2, c3),
209 self.confirm(a.ownerDocument is dom,
211 self.confirm(a.ownerElement is elem,
213 self.confirm(a.value == "bar",
215 self.confirm(a.nodeValue == "bar",
222 self.confirm(dom)# should not be zero
224 self.confirm(not dom.childNodes[-1].childNodes)
241 self.confirm(dom.documentElement)
248 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAA")
250 self.confirm(a.ownerDocument is dom,
252 self.confirm(a.ownerElement is dom.documentElement,
261 self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAB")
269 self.confirm(child.getAttribute("def") == "ghi")
270 self.confirm(child.attributes["def"].value == "ghi")
273 self.confirm(child.getAttribute("jkl") == "mno")
274 self.confirm(child.attributes["jkl"].value == "mno")
276 self.confirm(len(child.attributes) == 2)
279 self.confirm(child.getAttribute("def") == "newval")
280 self.confirm(child.attributes["def"].value == "newval")
282 self.confirm(len(child.attributes) == 2)
289 self.confirm(len(child.attributes) == 0)
291 self.confirm(len(child.attributes) == 1)
293 self.confirm(len(child.attributes) == 0)
301 self.confirm(len(child.attributes) == 1)
304 self.confirm(len(child.attributes) == 0)
316 self.confirm(len(child.attributes) == 2)
318 self.confirm(len(child.attributes) == 1)
325 self.confirm(len(child.attributes) == 1)
330 self.confirm(len(child.attributes) == 0
343 self.confirm(child.hasAttribute("spam"))
349 self.confirm(len(el.attributes) == 1)
354 self.confirm(len(el.attributes) == 1
360 self.confirm(len(el.attributes) == 1
366 self.confirm(len(el.attributes) == 2
374 self.confirm(len(el.attributes) == 2
421 self.confirm(len(elems) == 1
432 self.confirm(len(nodelist) == 0)
456 self.confirm(string1 == string2)
464 self.confirm(string1 == string2)
473 self.confirm(string1 == string2)
474 self.confirm("slash:abc" in string1)
481 self.confirm(str(node) == repr(node))
491 self.confirm(str == domstr)
498 self.confirm(domstr == str.replace("\n", "\r\n"))
537 self.confirm(pi.target == "mypi"
591 self.confirm(a1.isSameNode(a2))
600 self.confirm(a1.isSameNode(a2))
643 self.confirm(keys1 == keys2, "clone of element has same attribute keys")
647 self.confirm(a1 is not a2
653 self.confirm(a2.ownerElement is e2,
670 self.confirm(len(clone.childNodes) == 0
679 self.confirm(len(clone.childNodes) == 1
694 self.confirm(doc2 is None,
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))
726 self.confirm(clone is not None
739 self.confirm((not se.isSameNode(ce))
751 self.confirm((not sn.isSameNode(cn))
760 self.confirm(clone is None, "testCloneDocumentTypeDeepNotOk")
765 self.confirm(clone is not None
779 self.confirm(clone is None, "testCloneDocumentTypeShallowNotOk")
811 self.confirm(not clone.isSameNode(attr))
812 self.confirm(not attr.isSameNode(clone))
813 self.confirm(clone.ownerElement is None,
815 self.confirm(clone.ownerDocument.isSameNode(attr.ownerDocument),
817 self.confirm(clone.specified,
831 self.confirm(clone.target == pi.target
896 self.confirm(len(root.childNodes) == 2
900 self.confirm(len(root.childNodes) == 1
911 self.confirm(len(root.childNodes) == 0
922 self.confirm(len(root.childNodes) == 3
926 self.confirm(len(root.childNodes) == 2
942 self.confirm(len(root.childNodes) == 2
946 self.confirm(len(root.childNodes) == 1
960 self.confirm(len(root.childNodes) == 2
964 self.confirm(len(root.childNodes) == 1
979 self.confirm(len(root.childNodes) == 3
983 self.confirm(len(root.childNodes) == 2
1001 self.confirm(len(root.childNodes) == 5
1005 self.confirm(len(root.childNodes) == 1
1038 self.confirm(len(root.childNodes) == 3
1048 self.confirm(len(root.childNodes) == 2
1057 self.confirm(root.childNodes[0].childNodes[1].data == "tx"
1061 self.confirm(root.childNodes[0].childNodes[1].nextSibling is None
1090 self.confirm(node.childNodes[-1].nextSibling is None,
1098 self.confirm(pi.nextSibling is text and
1115 self.confirm(root.parentNode is doc and
1126 self.confirm(children[0] is children.item(0)
1165 self.confirm(n.getUserData("foo") is None)
1167 self.confirm(n.getUserData("foo") is None)
1170 self.confirm(n.getUserData("foo") == 12)
1171 self.confirm(n.getUserData("bar") == 13)
1173 self.confirm(n.getUserData("foo") is None)
1174 self.confirm(n.getUserData("bar") == 13)
1179 self.confirm(handler.called
1202 self.confirm(attr.name == "b"
1216 self.confirm(attr.name == "c"
1232 self.confirm(attr.name == "p:d"
1251 self.confirm(attr.name == "e"
1277 self.confirm(elem.tagName == "a"
1286 self.confirm(elem.tagName == "b"
1295 self.confirm(elem.tagName == "p:c"
1304 self.confirm(elem.tagName == "d"
1364 self.confirm(e.parentNode is elem, "Before replaceChild()")
1367 self.confirm(e.parentNode is elem, "After replaceChild()")
1384 self.confirm(len(elem.childNodes) == 3)
1390 self.confirm(len(elem.childNodes) == 5)
1395 self.confirm(text is None
1422 self.confirm(t.name is None
1428 self.confirm(hasattr(t, "name")
1436 self.confirm(doc.getElementById("v") is None
1440 self.confirm(e.isSameNode(doc.getElementById("v"))
1444 self.confirm(e.isSameNode(doc.getElementById("v"))
1452 self.confirm(doc.getElementById("v") is None
1459 self.confirm(e.isSameNode(doc.getElementById("w"))
1472 self.confirm(doc.getElementById("v") is None
1476 self.confirm(e.isSameNode(doc.getElementById("v"))
1480 self.confirm(e.isSameNode(doc.getElementById("v"))
1488 self.confirm(e.isSameNode(doc.getElementById("w")))
1489 self.confirm(not a1.isId)
1490 self.confirm(a2.isId)
1491 self.confirm(not a3.isId)
1492 self.confirm(doc.getElementById("v") is None)
1495 self.confirm(e.isSameNode(doc.getElementById("w"))
1508 self.confirm(doc.getElementById("v") is None
1512 self.confirm(e.isSameNode(doc.getElementById("v"))
1516 self.confirm(e.isSameNode(doc.getElementById("v"))
1524 self.confirm(e.isSameNode(doc.getElementById("w")))
1525 self.confirm(not a1.isId)
1526 self.confirm(a2.isId)
1527 self.confirm(not a3.isId)
1528 self.confirm(doc.getElementById("v") is None)
1531 self.confirm(e.isSameNode(doc.getElementById("w"))
1593 self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)