[TIP] [ANN] CaptureMock 0.1 - honestly not just yet another mocking framework!

Chris Withers chris at simplistix.co.uk
Fri Mar 25 01:36:16 PDT 2011


On 24/03/2011 21:14, Geoff Bache wrote:
> @capturemock("datetime.datetime.now")
> def test_some_real_time_code():
>       # etc

Seeing this made me think I should mention TestFixtures 
date/datetime/time support:

http://packages.python.org/testfixtures/datetime.html

Handy when you need to simulate specific or just 
predictable-and-changing dates and times in tests.

cheers,

Chris

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



More information about the testing-in-python mailing list