ADD: dav_base: some simple test cases.

This commit is contained in:
2019-03-07 17:46:36 +01:00
parent 530d1e5683
commit be7d93a34e
5 changed files with 79 additions and 0 deletions

View 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')