Although PyUnit was written primarily for 'C' Python, it is possible to write
PyUnit tests using Jython for your Java or Jython software. This can be
preferable to trying to write JUnit tests using Jython. PyUnit also works
correctly with Jython's predecessors, JPython 1.0 and 1.1.
Of course, Java does not have a TK GUI interface, so PyUnit's Tkinter-based
GUI will not work with Jython. The text-only interface works just fine, however.
To do so, simply copy the standard C Python library module files 'traceback.py',
'linecache.py', 'stat.py' and 'getopt.py'
to a location from which they can be imported by JPython. You can get these
files from any distribution of C Python. (These guidelines are based on the
standard library of C Python 1.5.x, and may not be correct for other Python
versions.)
Now you can write your PyUnit tests exactly as you would with C Python.