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.

Published by

Unknown's avatar

Dan Bernardic

A Winnipeg Web programmer. Proud member of the Skip the Dishes team. Experienced with Web technologies, e.g. HTML5, CSS, ( Server-side ) JS, PHP, WordPress, MVC, etc.

Leave a comment