Testing views

9 views
Skip to first unread message

typeshige

unread,
Dec 28, 2011, 4:01:47 PM12/28/11
to Django FeinCMS
I'd like to test the views of my 3rd party apps:

If I go into a shell and:

from django.test.client import Client
c=Client()
c.get('/some/view/').status_code

It works and I get 200

If I do this exact same thing in tests.py as a test, I always get a
TemplateDoesNotExist: 404.html

I'm running 1.4.2+

Thanks,
Shige


Reply all
Reply to author
Forward
0 new messages