Add content type list API view to the common app.

This commit is contained in:
Roberto Rosario
2017-01-28 22:55:48 -04:00
parent 2f67f0cffa
commit 3a13027be0
5 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
class CommonAPITestCase(APITestCase):
def test_content_type_list_view(self):
response = self.client.get(reverse('rest_api:content-type-list'))
self.assertEqual(response.status_code, 200)