from __future__ import unicode_literals from django.core.urlresolvers import reverse from rest_framework.test import APITestCase class EventAPITestCase(APITestCase): def test_evet_type_list_view(self): response = self.client.get(reverse('rest_api:event-type-list')) self.assertEqual(response.status_code, 200)