UPD: More and better tests.

This commit is contained in:
2019-03-29 16:56:44 +01:00
parent 80e9271209
commit 4c1c6b48df
6 changed files with 244 additions and 35 deletions

View File

@@ -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