summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_minidom.py
Commit message (Collapse)AuthorAgeFilesLines
* Implement testGetElementsByTagNameNS.Martin v. Löwis2001-06-031-1/+8
|
* Whitespace normalization.Tim Peters2001-02-211-1/+1
|
* Patch #103854: raises an exception if a non-Attr node is passed toAndrew M. Kuchling2001-02-211-0/+11
| | | | | | NamedNodeMap.setNamedItem(). Martin, should I sync the PyXML tree, too, or do you want to do it? (I don't know if you're wrapping the 0.6.4 release right now.)
* Add xml declaration into toxml testcase.Martin v. Löwis2001-02-061-1/+1
|
* Revise the driver code to be more informative in the final report.Fred Drake2001-02-011-7/+10
|
* Except HierarchyRequestErr instead of TypeError.Martin v. Löwis2001-01-271-1/+1
|
* a bold attempt to fix things broken by MAL's verify patch: importFredrik Lundh2001-01-171-4/+4
| | | | 'verify' iff it's used by a test module...
* This patch removes all uses of "assert" in the regression test suiteMarc-André Lemburg2001-01-171-1/+1
| | | | | | | and replaces them with a new API verify(). As a result the regression suite will also perform its tests in optimization mode. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
* Add forgotten importAndrew M. Kuchling2001-01-021-0/+1
|
* Added test case for legal DOM childrenAndrew M. Kuchling2000-12-311-1/+25
|
* Before calling traceback.print_exc(), call sys.stdout.flush(). This makesFred Drake2000-12-151-0/+1
| | | | it much easier to see where things went wrong.
* Update the test suite to cover more ground.Fred Drake2000-12-141-0/+8
| | | | This closes patch #102477.
* testInsertBefore(): Rewritten to actually test insertBefore() somewhat.Fred Drake2000-11-211-14/+103
| | | | | | | | | | | | | | | | | | | | testAAA(), testAAB(): Added checks that the results are right. testTooManyDocumentElements(): Added code to actually test this. testCloneElementDeep() testCloneElementShallow(): Filled these in with test code. _testCloneElementCopiesAttributes(), _setupCloneElement(): Helper functions used with the other testCloneElement*() functions. testCloneElementShallowCopiesAttributes(): No longer a separate test; _setupCloneElement() uses _testCloneElementCopiesAttributes() to test that this is always done. testNormalize(): Added to check Node.normalize().
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-231-13/+13
|
* Updated test suite to latest pulldom changes.Lars Gustäbel2000-10-131-15/+15
|
* cosmetic changes only:Jeremy Hylton2000-10-121-118/+118
| | | | use standard Python style for whitespace near = and ()
* Added additional test cases for pulldom modifications.Lars Gustäbel2000-10-111-1/+67
|
* Move the test for confirmation that all nodes have been freed into theFred Drake2000-10-091-24/+5
| | | | | | driver code, so that each test gets this; it had been done inconsistently. Remove the lines that set the variables holding dom objects to None; not needed since the interpreter cleans up locals on function return.
* Add .toxml test case, as proposed by Alex Martelli in bug report #116244.Martin v. Löwis2000-10-061-1/+6
|
* Added an "import xml.parsers.expat" to turn errors due to not havingBarry Warsaw2000-09-261-0/+1
| | | | the parser built into ImportErrors.
* Get rid of the one tab in the file.Guido van Rossum2000-09-221-1/+1
| | | | Closes Bug #115054.
* The minidom.Node class has a debug attribute which, when its _debugGuido van Rossum2000-09-211-0/+2
| | | | | | | | | | flag is true, is set to a StringIO object that silently collects all debug messages. This is triggered by the Node._debug=1 statement at the top of test_minidom.py. After the tests, we better delete that StringIO object to avoid wasting memory. We also reset the _debug flag. (Note that this is an undetectable memory leak, and the memory doesn't get collected by the cycle-gc either, because it's all reachable -- it's just useless.)
* Fix test errors.Paul Prescod2000-09-191-0/+1
|
* Don't print specific Node instances unless running verbosely.Martin v. Löwis2000-09-191-2/+8
| | | | Closes Bug #114775.
* Change assertions to confirmations so that optimization doesn't disablePaul Prescod2000-09-181-46/+66
| | | | checks.
* Compute the name of the test file so that it can be found both when thisFred Drake2000-07-031-2/+12
| | | | | | | test is run as a script and when imported via the regression test framework. Problem reported by Phillip Porch <root@theporch.com>.
* Added minidom tests.Paul Prescod2000-07-011-0/+321