I've wrapped the test cases up using the unittest module and while I was at it I created a nicer interface for specifying test functions with classes. This should give you a good start to using unit tests. Currently I think Spyder doesn't run unit tests nicely. I highly recommend PyCharm CE which will run the tests in a nice little test window.
I've wrapped the test cases up using the
unittest
module and while I was at it I created a nicer interface for specifying test functions with classes. This should give you a good start to using unit tests. Currently I think Spyder doesn't run unit tests nicely. I highly recommend PyCharm CE which will run the tests in a nice little test window.