Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify test method to verify redirection happens to correct url #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
modify test method to verify redirection happens to correct url
  • Loading branch information
seenureddy committed Sep 12, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit eaa9c30f4585c30e03776c053d04ca763ea6074c
4 changes: 2 additions & 2 deletions blogango/tests.py
Original file line number Diff line number Diff line change
@@ -20,8 +20,8 @@ def setUp(self):

def test_bloginstall_redirect(self):
"check that the blog redirects to install page when there is no blog installed"
response = self.c.get(reverse("blogango_index"))
self.assertEqual(response.status_code, 302)
response = self.c.get(reverse("blogango_install"))
self.assertEqual(response.status_code, 200)

def test_blogindex_access(self):
Blog.objects.create(title='test', tag_line="blog",