Sample program for NOSE and unittest framework For coverage use the following: nosetests -s --with-coverage --cover-erase --cover-html calculator_test.py