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-list

Reply via email to