TestFixtures 1.6.2 released!

Discussion in 'Python' started by Chris Withers, Sep 23, 2009.

  1. 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
     
    Chris Withers, Sep 23, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Withers

    TestFixtures 1.6.0 released!

    Chris Withers, Jun 18, 2009, in forum: Python
    Replies:
    0
    Views:
    260
    Chris Withers
    Jun 18, 2009
  2. Chris Withers

    TestFixtures 1.6.1 released!

    Chris Withers, Sep 6, 2009, in forum: Python
    Replies:
    0
    Views:
    243
    Chris Withers
    Sep 6, 2009
  3. Chris Withers

    TestFixtures 1.8.0 Released!

    Chris Withers, Jan 14, 2011, in forum: Python
    Replies:
    0
    Views:
    179
    Chris Withers
    Jan 14, 2011
  4. Chris Withers

    TestFixtures 1.9.0 Released!

    Chris Withers, Feb 11, 2011, in forum: Python
    Replies:
    0
    Views:
    252
    Chris Withers
    Feb 11, 2011
  5. Chris Withers

    TestFixtures 1.9.2 Released!

    Chris Withers, Apr 20, 2011, in forum: Python
    Replies:
    0
    Views:
    240
    Chris Withers
    Apr 20, 2011
Loading...

Share This Page