from django.test import TestCase, Client client = Client() class IssueApiTest(TestCase): def test_issues(self): response = client.get('/api/2/tickets/') self.assertEqual(response.status_code, 200) self.assertEqual(response.json(), [])