Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40511

testfixtures 3.0.0 Released!

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <chris@simplistix.co.uk>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'exception': 0.03; 'output': 0.04; 'result,': 0.05; 'source.': 0.05; 'objects,': 0.07; 'prefix': 0.07; 'pypi': 0.07; 'raised': 0.07; 'python': 0.09; 'from:addr:simplistix.co.uk': 0.09; 'from:name:chris withers': 0.09; 'list...': 0.09; 'message-id:@simplistix.co.uk': 0.09; 'output,': 0.09; 'raised,': 0.09; 'received:89.151': 0.09; 'received:89.151.125': 0.09; 'received:89.151.125.140': 0.09; 'received:server1.simplistix.co.uk': 0.09; 'received:simplistix.co.uk': 0.09; 'bug': 0.10; 'encoding': 0.15; 'already,': 0.16; 'comparison.': 0.16; 'dig': 0.16; 'fixes.': 0.16; 'helpers': 0.16; 'received:buzzkill.local': 0.16; 'simplistix': 0.16; 'statements,': 0.16; 'succinct': 0.16; 'to:name:python list': 0.16; 'url:simplistix': 0.16; 'comparing': 0.17; 'tests.': 0.17; 'tests': 0.18; '>>>': 0.18; 'changes': 0.20; 'parameters': 0.20; 'all,': 0.21; 'import': 0.21; '3.2': 0.22; 'doc': 0.22; 'exceptions': 0.22; 'from:addr:chris': 0.22; 'minor': 0.22; 'cheers,': 0.23; "haven't": 0.23; 'testing': 0.24; 'header :User-Agent:1': 0.26; 'creating': 0.26; '(most': 0.27; 'checking': 0.27; 'logging': 0.27; 'chris': 0.28; 'comparison': 0.29; 'optional': 0.29; 'url:software': 0.29; 'objects': 0.29; 'source': 0.29; "i'm": 0.29; 'classes': 0.30; 'normally': 0.30; 'feedback': 0.30; 'url:python': 0.32; 'to:no real name:2**1': 0.32; 'print': 0.32; 'certain': 0.33; "aren't": 0.33; 'dates': 0.33; 'traceback': 0.33; 'to:addr:python-list': 0.33; 'times.': 0.33; 'that,': 0.34; 'wrong': 0.34; 'list': 0.35; 'along': 0.35; 'open': 0.35; 'expected': 0.35; 'offered': 0.35; 'there': 0.35; 'add': 0.36; 'but': 0.36; 'announce': 0.36; 'compare': 0.36; 'unit': 0.38; 'files': 0.38; 'supports': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'release': 0.39; 'easily': 0.39; 'little': 0.39; 'help': 0.40; 'easy': 0.60; 'skip:u 10': 0.60; 'here:': 0.62; 'to:2**2': 0.62; 'information': 0.63; 'more': 0.63; 'for:': 0.64; 'making': 0.64; 'results': 0.65; 'url:co': 0.66; 'pleased': 0.66; 'special': 0.73; 'received:89': 0.86
Date Tue, 05 Mar 2013 09:48:20 +0000
From Chris Withers <chris@simplistix.co.uk>
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0
MIME-Version 1.0
To testing-in-python@lists.idyll.org, Python List <python-list@python.org>, simplistix@googlegroups.com
Subject testfixtures 3.0.0 Released!
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2873.1362476914.2939.python-list@python.org> (permalink)
Lines 70
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362476914 news.xs4all.nl 6874 [2001:888:2000:d::a6]:43950
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40511

Show key headers only | View raw


Hi All,

I'm pleased to announce the release of testfixtures 3.0.0. The big 
change for this release is that testfixtures now supports Python 2.6, 
2.7, 3.2 and 3.3!

As a result, some changes have been made to TempDirectory to support 
encoding and decoding. There's also a nice little addition of an 
optional prefix to the message generated when comparisons fail:

>>> from testfixtures import compare
>>> compare(1, 2, prefix='wrong number of orders')
Traceback (most recent call last):
  ...
AssertionError: wrong number of orders: 1 != 2

The means that you still get the rich comparison feedback offered by 
compare, but can also add more information to make any failure more 
easily understandable without having to dig into the source.

Other than that, there have been a couple of minor bug fixes.

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:

http://www.simplistix.co.uk/software/python/testfixtures

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

cheers,

Chris

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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

testfixtures 3.0.0 Released! Chris Withers <chris@simplistix.co.uk> - 2013-03-05 09:48 +0000

csiph-web