Well of course use the unittest library. Writing a unit testing framework isn't my idea of fun.