your feedback to my first project please

Peter Otten __peter__ at web.de
Sat Jan 7 08:12:28 EST 2012


patrick at bierans.de wrote:

> I know the TestCases are ugly, I still have no feeling for it.

I forgot to mention: instead of testing each and every thing in one big 
method put each test into a short dedicated TestCase.test_... method. That 
reduces the risk of undetected side effects and often allows you to learn 
what went wrong from the -- thoroughly chosen ;) -- name of the test method 
alone.

coverage.py is a good tool to give you an idea of what portion of your 
module code is covered by your tests.




More information about the Python-list mailing list