unit test for a printing method
noro
amit.man at gmail.com
Tue Aug 29 06:20:49 EDT 2006
Fredrik Lundh wrote:
> Scott David Daniels wrote:
>
> > For silly module myprog.py:
> > def A(s):
> > print '---'+s+'---'
> > in test_myprog.py:
> > import unittest
> > from cStringIO import StringIO # or from StringIO ...
>
> why are you trying to reinvent doctest ?
>
> </F>
it was my understanding that "doctest" is intented to test the little
examples in a function/class documention, do people use it for more
then that, i.e - do an extentive output testing for thier apps?
amit
More information about the Python-list
mailing list