You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
462 B

10 years ago
10 years ago
10 years ago
  1. from django.test import TestCase
  2. from django.test.utils import override_settings
  3. from hc.api.models import Check
  4. class BasicsTestCase(TestCase):
  5. def test_it_shows_welcome(self):
  6. r = self.client.get("/")
  7. self.assertContains(r, "Get Notified", status_code=200)
  8. @override_settings(REGISTRATION_OPEN=False)
  9. def test_it_obeys_registration_open(self):
  10. r = self.client.get("/")
  11. self.assertNotContains(r, "Get Started")