Files
mayan-edms/mayan/apps/common/tests/test_api.py
Roberto Rosario 80f64d7fcf Add BaseAPITestCase class that invalidates the permission and smart settings caches.
Use BaseAPITestCase for all API test cases.
2017-02-16 21:12:55 -04:00

12 lines
343 B
Python

from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from rest_api.tests import BaseAPITestCase
class CommonAPITestCase(BaseAPITestCase):
def test_content_type_list_view(self):
response = self.client.get(reverse('rest_api:content-type-list'))
self.assertEqual(response.status_code, 200)