Standard idiom for testing individual functions?

Jeremy Fincher tweedgeezer at hotmail.com
Wed Aug 7 09:17:40 CEST 2002


I've read Diving Into Python, but I'd rather get a second opinion on
Unit Testing.  I have a module that's basically a collection of useful
functions, and I'd like to write some unit tests (based on the
unittest module, of course :)) for them.  Right now, I have an
individual TestCase for each function, but is there an easier way?  If
there is, can someone show me an example of it?

Thanks!

Jeremy



More information about the Python-list mailing list