On Friday, March 11, 2011 10:19:27 pm Kenneth Gonsalves wrote:
> hi,
> 
> I am trying to run a test using assertContains, but get this error:
> 
> AttributeError: 'SourceTestCase' object has no attribute
> 'assertContains'
> 
> my code:
> 
> 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).

assertContains is a django specific test and located in test.TestCase with the 
others (you can find TransactionTestCase in there also).


Mike



-- 
The British are coming!  The British are coming!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to