Abhi's Experiments

Its a place to write about my professional experience and experiments

unittest - Unit Testing framework for Python

My google appengine application flamesgame is improving with more features. So I thought I have to write tests for the code, to make it maintainable and feel free to modify or refactor the code. In python 'unittest' the Unit Testing framework is available with the Python. All you need to do is import the unittest library:


You can save it as test.py. To run the test just type the command:

python test.py

This is a simple test, for more test cases or complicated scenarios you can check unittest.

The tests for the flamesgame app is available at GitHub.

blog comments powered by Disqus
Threading in Python >>
<< Test Driven Development