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

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