#5995: assertContains() - AttributeError
-----------------------------+----------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Component: Uncategorized
Version: SVN | Keywords: test, assertContains
Stage: Unreviewed | Has_patch: 0
-----------------------------+----------------------------------------------
I get a AttributeError when I try the django test client method
assertContains():
(found assertContains() in the documentation,
http://www.djangoproject.com/documentation/testing/)
{{{
class TestUsers(unittest.TestCase):
def setUp(self):
self.client = Client()
def testUsername(self):
response = self.client.get('/username/')
self.assertContains(response, "actionjakson", count=None,
status_code=200)
}}}
i got this traceback:
{{{
Traceback (most recent call last):
File "/home/src/vp/../vp/portal/tests.py", line 49, in testUsername
self.assertContains(response, "actionjakson", count=None,
status_code=200)
AttributeError: 'TestUsers' object has no attribute 'assertContains'
}}}
I'm using a fresh django svn checkout.
--
Ticket URL: <http://code.djangoproject.com/ticket/5995>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---