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.

12 lines
289 B

  1. from hc.test import BaseTestCase
  2. class StatusTestCase(BaseTestCase):
  3. url = "/api/v1/status/"
  4. def test_it_works(self):
  5. r = self.client.get(self.url)
  6. self.assertEqual(r.status_code, 200)
  7. self.assertNumQueries(1)
  8. self.assertEqual(r.content, b"OK")