Files
mayan-edms/mayan/apps/events/tests/test_api.py
Roberto Rosario 655c1fd09f Remove use of self.client
Replace self.client.<method> with the shorthand self.<method>

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-13 03:58:49 -04:00

12 lines
328 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.get(viewname='rest_api:event-type-list')
self.assertEqual(response.status_code, 200)