This patch refactors test_minidom.py to use unittest. Since the test gets run by xmltest.py, this will invalidate the expected output in Lib/test/output/xmltest. There are some other files run by xmltest.py that have not yet been refactored, so Lib/test/output/xmltest is not ready for removal.