diff options
author | Fred Drake <fdrake@acm.org> | 2000-10-23 17:22:08 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-10-23 17:22:08 (GMT) |
commit | 004d5e6880940ddbb38460986ac62ee0f1bae97d (patch) | |
tree | 682e75e743f5c22206a65ac0262c03ce37e4fbee /Lib/test/test_minidom.py | |
parent | 2e6d25c5bbf3e2d4f18191c0836b5ed8f94dc850 (diff) | |
download | cpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.zip cpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.tar.gz cpython-004d5e6880940ddbb38460986ac62ee0f1bae97d.tar.bz2 |
Make reindent.py happy (convert everything to 4-space indents!).
Diffstat (limited to 'Lib/test/test_minidom.py')
-rw-r--r-- | Lib/test/test_minidom.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py index 7afdf5d..ce7170d 100644 --- a/Lib/test/test_minidom.py +++ b/Lib/test/test_minidom.py @@ -16,9 +16,9 @@ tstfile = os.path.join(os.path.dirname(base), "test.xml") del base def confirm(test, testname = "Test"): - if test: + if test: print "Passed " + testname - else: + else: print "Failed " + testname raise Exception @@ -41,7 +41,7 @@ def testInsertBefore(): docel = dom.documentElement #docel.insertBefore( dom.createProcessingInstruction("a", "b"), # docel.childNodes[1]) - + #docel.insertBefore( dom.createProcessingInstruction("a", "b"), # docel.childNodes[0]) @@ -133,7 +133,7 @@ def testRemoveAttrNS(): dom = Document() child = dom.appendChild( dom.createElementNS("http://www.python.org", "python:abc")) - child.setAttributeNS("http://www.w3.org", "xmlns:python", + child.setAttributeNS("http://www.w3.org", "xmlns:python", "http://www.python.org") child.setAttributeNS("http://www.python.org", "python:abcattr", "foo") confirm(len(child.attributes) == 2) @@ -141,7 +141,7 @@ def testRemoveAttrNS(): confirm(len(child.attributes) == 1) dom.unlink() - + def testRemoveAttributeNode(): dom = Document() child = dom.appendChild(dom.createElement("foo")) @@ -313,11 +313,11 @@ def testSiblings(): root = doc.documentElement (pi, text, elm) = root.childNodes - confirm(pi.nextSibling is text and - pi.previousSibling is None and - text.nextSibling is elm and - text.previousSibling is pi and - elm.nextSibling is None and + confirm(pi.nextSibling is text and + pi.previousSibling is None and + text.nextSibling is elm and + text.previousSibling is pi and + elm.nextSibling is None and elm.previousSibling is text, "testSiblings") doc.unlink() @@ -347,7 +347,7 @@ def testSAX2DOM(): sax2dom.startElement("subelm", {}) sax2dom.characters("text") sax2dom.endElement("subelm") - sax2dom.characters("text") + sax2dom.characters("text") sax2dom.endElement("doc") sax2dom.endDocument() @@ -370,11 +370,11 @@ def testSAX2DOM(): elm1.parentNode is root and text2.parentNode is root and text3.parentNode is elm1, "testSAX2DOM - parents") - + doc.unlink() # --- MAIN PROGRAM - + names = globals().keys() names.sort() |