[Zope3-dev] Re: [Zope-Checkins] CVS: Zope3/src/persistent/tests - test_persistent.py:1.5 persistent.txt:1.2

Chris Withers lists at simplistix.co.uk
Mon Mar 8 07:18:24 EST 2004


Jim Fulton wrote:

> doctest tests are text with Python examples.

Yes, but that is not python.

Feed the text of a doctest to python and I'm sure it will complain ;-)

> Yup. But out experience has been that it is much easier and thus
> morel likely to write well-documented tests in doctest than with the
> straight unittest framework.  For example, unitest makes it easier to
> write python code than to write words. 

What's wrong with docstrings in unit tests?

> I'm writing a paper on this for PyCon, which will be available on line.

Cool, look forward to a URL :-)

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk




More information about the Zope3-dev mailing list