Files
mayan-edms/mayan/apps/events/tests/test_api.py
Roberto Rosario 027a853885 Update events app
Add keyword arguments. Update URLs for uniformity.
Update URL parameters to the '_id' form. Update
views to remove use of .check_access(). Fix escape
sequence warning in migration 0005.

Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
2019-01-21 02:37:45 -04:00

12 lines
344 B
Python

from __future__ import unicode_literals
from django.urls import reverse
from mayan.apps.rest_api.tests import BaseAPITestCase
class EventAPITestCase(BaseAPITestCase):
def test_evet_type_list_view(self):
response = self.client.get(reverse(viewname='rest_api:event-type-list'))
self.assertEqual(response.status_code, 200)