Exhaustive Unit Testing
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Thu Nov 27 13:45:47 EST 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
problems.
Bye,
bearophile
More information about the Python-list
mailing list