dcsimg
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)

WEBINAR:
On-Demand

How to Help Your Business Become an AI Early Adopter


[ 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:


×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.