[TIP] testfixtures 3.0.1 Released!

Chris Withers chris at simplistix.co.uk
Mon Jun 10 08:11:19 PDT 2013

Hi All,

I'm pleased to announce the release of testfixtures 3.0.1. This is a bug 
fix release featuring the following changes:

- Some documentation tweaks and clarifications.

- Fixed a bug which masked exceptions when using compare() with a broken 

- Fixed a bug when comparing a generator with a non-generator.

- Ensure LogCapture cleans up global state it may effect.

- Fixed replacement of static methods using a Replacer.

If you haven't bumped into it already, testfixtures is a collection of 
helpers for writing succinct unit tests including help for:

- Comparing objects and sequences

Better feedback when the results aren't as you expected along with 
support for comparison of objects that don't normally support comparison.

- Mocking out objects and methods

Easy to use ways of stubbing out objects, classes or individual methods 
for both doc tests and unit tests. Special helpers are provided for 
testing with dates and times.

- Testing logging

Helpers for capturing logging output in both doc tests and unit tests.

- Testing stream output

Helpers for capturing stream output, such as that from print statements, 
and making assertion about it.

- Testing with files and directories

Support for creating and checking files and directories in sandboxes for 
both doc tests and unit tests.

- Testing exceptions

Easy to use ways of checking that a certain exception is raised, even 
down the to the parameters the exception is raised with.

The package is on PyPI and a full list of all the links to docs, issue 
trackers and the like can be found here:


Any questions, please do ask on the Testing in Python list or on the 
Simplistix open source mailing list...



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

More information about the testing-in-python mailing list