python unit tests with doctest
def mulby2(a): """ >>> mulby2(5) 10 """ return 2*a import doctest doctest.testmod()
DZone Snippets > manatlan > doctest
12389 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
manatlan http://manatlan.online.fr
def mulby2(a): """ >>> mulby2(5) 10 """ return 2*a import doctest doctest.testmod()