fmartingr
/
shelfzilla
Archived
1
0
Fork 0
This repository has been archived on 2021-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
shelfzilla/shelfzilla/apps/landing/test.py

17 lines
543 B
Python
Raw Normal View History

2014-03-26 11:24:50 +00:00
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'))