Hello all,

I am beginning to write view tests and I was following what we have in docs at http://docs.djangoproject.com/en/dev/topics/testing/ and also this nice article at http://toastdriven.com/blog/2011/apr/10/guide-to-testing-in-django/.

I have a strange problem with the below code:

from django.test import Client
c = Client()
resp = c.get('/accounts/activate /b6e7d424a94584ea896f3f266478970223c7fc0e')

when I try to access resp.context or resp.templates it's empty.
I suspect the problem is that the resp is not a Response object, but instead it's <django.http.HttpResponse object at 0x1020d0990>.

Why am I getting HttpResponse object returned from the get() method, even though the docs says it should be Response object?

BTW, this is Django 1.3-release.

Thanks.

--
Kind regards
  Daniel Gerzo

--
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