Replace self.client.<method> with the shorthand self.<method> Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
12 lines
328 B
Python
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)
|