ADD: dav_base: some simple test cases.
This commit is contained in:
10
dav_base/tests/test_views.py
Normal file
10
dav_base/tests/test_views.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.test import TestCase, Client
|
||||
|
||||
|
||||
class ViewsTestCase(TestCase):
|
||||
def setUp(self):
|
||||
self.client = Client()
|
||||
|
||||
def test_root(self):
|
||||
response = self.client.get('/', follow=False)
|
||||
self.assertIn('root_urls', response.context, '\'root_urls\' not in context of root view')
|
||||
Reference in New Issue
Block a user