[TIP] TestFixtures 1.8.0 Released!

Chris Withers chris at simplistix.co.uk
Fri Jan 14 10:40:52 PST 2011

On 14/01/2011 17:03, Phlip wrote:
>> I'd suggest developing mock objects to work in place of your ctypes objects.
> Just a tiny note: Freshly TDD-ed code should not need mocks. Only
> situations like simulating hardware errors or specific clock settings
> should need them.

Did you even read the OPs post?

Now, for starters, you're wrong; I find mocking extremely helpful in 
building systems made up of components. I particularly like the ability 
to replace certain components to track the calls made to them by other 
components. Mocking out things like datetime.date and datetime.datetime 
have also proved extremely powerful.

Nevermind the fact that the OP was talking about mocking out DLLs that 
are platform specific...



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

More information about the testing-in-python mailing list