I’ve set up a version-controlled repository for the code retreat.

This time around I have branches with the boilerplate/scaffolding code for several testing frameworks including:

* DocTest for Python

* NodeUnit for JavaScript

* PHPUnit & SimpleTest for PHP

doctest – Testing through documentation

doctest – Testing through documentation

This page has a somewhat in-depth set of examples for writing unit tests in Python with doctest.

http://pymotw.com/2/doctest/#working-around-whitespace specifically shows how to get around some whitespace formatting gotchas.