1. Mike Mazur
  2. nose-django

Commits

Victor Ng  committed 9af906a

added a 404.html file and updated the testcases to run against Django svn rev 8693 (post 1.0b1)

  • Participants
  • Parent commits 3b9fe61
  • Branches default

Comments (0)

Files changed (2)

File examples/project/templates/404.html

View file
  • Ignore whitespace
+blah.  HTTP 404 error

File examples/project/zoo/test_urlconf.py

View file
  • Ignore whitespace
         '''
         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/')
 
         c = Client()
         resp = c.get('/zoo/')
-        assert resp.status_code == 500
+        assert resp.status_code == 404, "Got status %s - expecting 404" % resp.status_code