UPD: improved tests.
This commit is contained in:
10
apps/base/tests/test_urls.py
Normal file
10
apps/base/tests/test_urls.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
from django.test import SimpleTestCase
|
||||
from django.urls import reverse
|
||||
|
||||
|
||||
class UrlsTestCase(SimpleTestCase):
|
||||
def test_root_reverse(self):
|
||||
response = self.client.get(reverse('root'))
|
||||
self.assertEqual(response.status_code, 200)
|
||||
Reference in New Issue
Block a user