Add content type list API view to the common app.
This commit is contained in:
11
mayan/apps/common/tests/test_api.py
Normal file
11
mayan/apps/common/tests/test_api.py
Normal 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)
|
||||
Reference in New Issue
Block a user