Dieter Maurer wrote:
We could use monkey patching for this -- used only for testing purposes.


Yup, I've had extensive success with this too, for example, to get consistent dates during date-based tests.

I'm also -1 on havign functionality in production code that's there purely to support unit tests...

Chris

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

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )

Reply via email to