Exhaustive Unit Testing

bearophileHUGS at lycos.com bearophileHUGS at lycos.com
Thu Nov 27 19:45:47 CET 2008

Emanuele D'Arrigo:
>I can fragment the code of the original method into one public method and a few private support methods.<

Python also support nested functions, that you can put into your
method. The problem is that often unit test functions aren't able to
test nested functions.

A question for other people: Can Python change a little to allow
nested functions to be tested? I think this may solve some of my


More information about the Python-list mailing list