On Friday, March 11, 2011 11:11:21 pm Kenneth Gonsalves wrote:
> On Fri, 2011-03-11 at 23:04 -0800, Mike Ramirez wrote:
> > > from django.utils import unittest
> >
> > from django.test import TestCase
> >
> > the stuff in utils.unittest is unittest2 stuff if you're using python
> > <2.7
> > (unittest2 is part of 2.7 now as unittest).
>
> I am using 2.6, but according to the django docs, django has a bundled
> version of unittest2 which is accessed from django.utils.unittest which
> is meant for python <2.7.
The problem here is that assertContains is not part of unittest/unittest2.
It's defined in TransactionTestCase in django.test, which extends
unittest2.TestCase and adds in assertContains, assertNotContains,
assetFormError, basically django specific assertions.
Mike
--
<rm_-rf_> The real value of KDE is that they inspired and push the
development of GNOME :-)
-- #Debian
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.