/ Published in: Django
URL: http://docs.djangoproject.com/en/1.1/topics/testing/
Expand |
Embed | Plain Text
from django.test.client import Client c = Client() response = c.post(\'/login/\', {\'username\': \'john\', \'password\': \'smith\'}) response.status_code # 200 response = c.get(\'/customer/details/\') response.content # \'<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 ...\'
You need to login to post a comment.
