Sorry - there are no unit tests that I can see.  The comment - here : http://code.activestate.com/recipes/576693/  is that this code passes Python2.7's test suite. Do you mean copy the test suite out of Python itself?