Skip to content.

plope

Personal tools
You are here: Home » Members » chrism's Home » Writing Bad Unit Tests » doctests...
 
 

Comment

Above in this comment thread: Writing Bad Unit Tests » ZTC/PTC are integration tests with a naming problem ;) » argh...

doctests...

Posted by chrism at 2008-05-29 12:43 PM
You can write Perl in any language:

>>> # cut and paste shit I don't understand and use it anyway!
>>> from PloneDocTestNGCaseDS9 import MakeAPlone
>>> plone = MakeAPlone()
>>> 'mytool' in plone.objectIds()
True

... and so on. We both know that this is how it would have went if everything had been doctests instead of unit tests from the start. This is not a doctest vs unittest thing, it's a think instead of not-think thing.