5 Dec
2005
5 Dec
'05
9:28 a.m.
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