Mercurial > nosedjango
view examples/project/tests/test_views.py @ 8:a82369f2574e
http client tests
author | Victor Ng <victor@monkeybean.ca> |
---|---|
date | Thu, 28 Aug 2008 12:42:31 -0400 |
parents | ff263bdd455e |
children |
line wrap: on
line source
from django.test.client import Client def test_view_index(): c = Client() resp = c.get('/zoo/') assert "Just a title" in resp.content assert "foobar" in resp.content