TestFixtures 1.6.2 released!
Chris Withers
chris at simplistix.co.uk
Wed Sep 23 07:19:49 EDT 2009
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
More information about the Python-list
mailing list