LWN.net Logo

TestFixtures 1.6.2 released

From:  Chris Withers <chris-AT-simplistix.co.uk>
To:  python-list-AT-python.org, python-announce-AT-python.org, simplistix-AT-googlegroups.com
Subject:  TestFixtures 1.6.2 released!
Date:  Wed, 23 Sep 2009 12:19:49 +0100
Message-ID:  <4ABA0455.6000105@simplistix.co.uk>
Archive-link:  Article, Thread

Hi All,

I'm pleased to announce a new release of TestFixtures.
This package is a collection of helpers and mock objects that are useful
when writing unit tests or doc tests.

This release fixes problems when using Comparison objects with instances 
of Django models, so tests like the following will now work as expected:

from testfixtures import Comparison as C,compare

class TestUser(TestCase):

     def test_create(self):
         u = User(name='Test')
         u.save()
         t = User.objects.get(name='Test')
         compare([C(User,name='Test',strict=False)],
                 list(User.objects.all()))

To find out more, please read here:

http://pypi.python.org/pypi/testfixtures

cheers,

Chris

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





-- 
http://mail.python.org/mailman/listinfo/python-announce-list

        Support the Python Software Foundation:
        http://www.python.org/psf/donations/



(Log in to post comments)

Copyright © 2009, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds