Hi Steven, > Also, I'm a big believer in test-driven development. I must admit though I'm > not so pedantic to write the tests first, but for anything except > quick-and-dirty scripts, I make sure that *every* function in my program, > without exception, has a test to ensure that it works correctly. So I'll > often have a third tab open for running my test suite. I use a mix of > doctests and unit-tests. Here's an example from a project I'm working on at > the moment:
<snip> Does anybody know of any good reference on testing? How do you develop tests for functions? I haven't found much information on this in the Python books I own. JM _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor