Files
django-dav-events/dav_base/tests/test_views.py

11 lines
304 B
Python

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