Re: [Python-Dev] test_expat.py and unittest

2007-03-20 Thread Guido van Rossum
You could use doctest, which is an accepted testing tool that lets you compare snippets of output directly without having to check in a "golden" file. Despite what is written somewhere, it is not deprecated or discouraged. See Lib/doctest.py. You could also use some advanced testing strategy where

[Python-Dev] test_expat.py and unittest

2007-03-20 Thread Jerry Seutter
Hi, I have been working on converting some of the older test files to use unittest. test_expat.py has a section like: class Outputter: def StartElementHandler(self, name, attrs): print 'Start element:\n\t', repr(name), sortdict(attrs) def EndElementHandler(self, name): prin