Linux Today: Linux News On Internet Time.

More on LinuxToday

Testing in Python using doctest

May 16, 2011, 05:11 (0 Talkback[s])
(Other stories by Greg Lee Turnquist)


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

[ Thanks to Naheed for this link. ]

"Coding a test harness for doctest: The doctest module supports creating objects, invoking methods, and checking results. With this recipe, we will explore this in more detail.

"An important aspect of doctest is that it finds individual instances of docstrings, and runs them in a local context. Variables declared in one docstring cannot be used in another docstring."

Complete Story

Related Stories: