revsys / django-test-plus

Useful additions to Django's default TestCase

Home Page:https://django-test-plus.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'TestCase' object has no attribute 'assertResponseContains'

ndanielsen opened this issue · comments

Great testing util that you're maintaining here. I'm getting this error when running a basic test.

AttributeError: 'IssueTestCase' object has no attribute 'assertResponseContains'

Thanks! Sounds like you aren't importing and inheriting from our TestCase. You need to have something like:

from test_plus import TestCase

class IssueTestCase(TestCase):
    # Your code here....