UPD: More and better tests.
This commit is contained in:
@@ -35,9 +35,10 @@ class TemplatesTestCase(SimpleTestCase):
|
||||
'<script type="text/javascript" src="{static_url}dav_base/bootstrap/js/bootstrap.min.js"></script>',
|
||||
)
|
||||
|
||||
content = response.content.decode('utf-8')
|
||||
for needle in html_needles:
|
||||
needle = needle.format(static_url=static_url)
|
||||
self.assertInHTML(needle, response.content.decode('utf-8'))
|
||||
self.assertInHTML(needle, content)
|
||||
|
||||
def test_page_footer(self):
|
||||
response = self.response_from_root_view
|
||||
|
||||
Reference in New Issue
Block a user