This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

11 lines
304 B
Python

from django.core.urlresolvers import reverse
from django.test import TestCase
from rest_framework import status
class IndexViewTest(TestCase):
def test_index_view(self):
url = reverse('index')
res = self.client.get(url)
self.assertEqual(res.status_code, status.HTTP_200_OK)