the rationale was that when running py.test with `--doctest-modules` (enabling doctests) the doctest-y syntax below (lines 18ff) will make the block be recognised and run as one.  however, without the class definition upfront it'll fail, of course.  so imho, the code block should either be written as a doctest in its entirety or else not use the `>>>` syntax at all.