Mercurial > nosedjango
changeset 11:9af906a73061
added a 404.html file and updated the testcases to run against Django svn rev 8693 (post 1.0b1)
author | Victor Ng <victor@monkeybean.ca> |
---|---|
date | Fri, 29 Aug 2008 00:46:22 -0400 |
parents | 3b9fe61973cf |
children | a6e52c3b64a8 |
files | examples/project/templates/404.html examples/project/zoo/test_urlconf.py |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/project/templates/404.html Fri Aug 29 00:46:22 2008 -0400 @@ -0,0 +1,1 @@ +blah. HTTP 404 error
--- a/examples/project/zoo/test_urlconf.py Thu Aug 28 13:45:46 2008 -0400 +++ b/examples/project/zoo/test_urlconf.py Fri Aug 29 00:46:22 2008 -0400 @@ -9,7 +9,7 @@ ''' c = Client() resp = c.get('') - assert resp.status_code == 500 + assert resp.status_code == 404, "Got status %s - expecting 404" % resp.status_code c = Client() resp = c.get('/zoo/') @@ -31,7 +31,7 @@ c = Client() resp = c.get('/zoo/') - assert resp.status_code == 500 + assert resp.status_code == 404, "Got status %s - expecting 404" % resp.status_code