from bx_django_utils.test_utils.html_assertion import HtmlAssertionMixin from django.conf import settings from django.test.testcases import TestCase from django.urls.base import reverse from example_project import __version__ class ExampleProjectTestCase(HtmlAssertionMixin, TestCase): def test_urls(self): assert settings.PATH_URL == 'app_path' assert reverse('admin:index') == '/app_path/admin/' assert reverse('debug-view') == '/app_path/' ############################################################################### # Test as anonymous user response = self.client.get( path='/app_path/', secure=True, ) self.assert_html_parts( response, parts=( f'
''