diff --git a/dav_base/tests/test_templates.py b/dav_base/tests/test_templates.py
index b8b193c..7220d10 100644
--- a/dav_base/tests/test_templates.py
+++ b/dav_base/tests/test_templates.py
@@ -1,3 +1,4 @@
+from django.conf import settings
from django.test import SimpleTestCase
@@ -14,24 +15,27 @@ class TemplatesTestCase(SimpleTestCase):
def test_html_head(self):
response = self.response_from_root_view
+ static_url = settings.STATIC_URL
+
html_needles = (
# favicon
- '',
+ '',
# bootstrap css
- '',
+ '',
# css file for jquery.dataTables.js
- '',
+ '',
# local css file
- '',
+ '',
# jquery.js file
- '',
+ '',
# jquery.dataTables.js file
- '',
+ '',
# bootstrap js file
- '',
+ '',
)
for needle in html_needles:
+ needle = needle.format(static_url=static_url)
self.assertInHTML(needle, response.content)
def test_page_footer(self):