unit testing

Paul Rubin http
Fri Oct 5 22:51:59 EDT 2007


Ben Finney <bignose+hates-spam at benfinney.id.au> writes:
> Or even better:
> 
>     def test_raises_good_exception():
>         try:
>             thingy()

Well if we're grading on style, maybe you really want to name the
function 'test_thingy' instead of 'test_raises_good_exception'.



More information about the Python-list mailing list