On 28 Jun 2013 08:33, "Peter Otten" <__pete...@web.de> wrote: > > Whatever approach you pick, unittest, doctest, or a combination, your code > will improve -- not just because you are verifying its correctness to some > extent, but also because the inherent question "How can I test it?" will > lead to a better overall structure.
This is the thing I've found to be most useful when I first started writing tests. When I go test-first and write your test for a new function, that's when the signature becomes obvious to me.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor