fmartingr
/
shelfzilla
Archived
1
0
Fork 0

Added landing app tests

This commit is contained in:
Felipe Martin 2014-03-26 12:24:50 +01:00
parent c5db135f67
commit 1b736988c8
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
from django.test import TestCase
from django.core.urlresolvers import reverse
class LandingForBetaTest(TestCase):
def test_can_login(self):
response = self.client.get(reverse("login"))
self.assertEqual(response.status_code, 200)
def test_can_access_landing(self):
response = self.client.get(reverse("landing"))
self.assertEqual(response.status_code, 200)
def test_redirect_home_to_landing(self):
response = self.client.get('/')
self.assertRedirects(response, reverse('landing'))