Permalink
Browse files

add test for redirect

  • Loading branch information...
fivethreeo committed Sep 24, 2011
1 parent f2fc58d commit 1b8c2f869cad8cf266c7d53b36b0ceadfdf63e6e
Showing with 3 additions and 2 deletions.
  1. +3 −2 cmsplugin_blog/tests/__init__.py
@@ -298,8 +298,9 @@ def test_01_redirect_existing_language(self):
response = self.client.get(u'/test-page-1/2011/08/31/entry-title/')
self.assertRecirects(response, u'/test-page-1/2011/08/31/entry-title/')
entry.delete()
- response = self.client.get(entry.get_absolute_url(), u'/test-page-1/2011/08/31/entry-title/')
- self.assertRaises(response, Http404)
+ with SettingsOverride(DEBUG=True):
+ response = self.client.get(entry.get_absolute_url(), u'/test-page-1/2011/08/31/entry-title/')
+ self.assertRaises(response, Http404)
class LatestEntriesTestCase(BaseBlogTestCase):

0 comments on commit 1b8c2f8

Please sign in to comment.