FIX/UPD: tests are OK with python3.

This commit is contained in:
2019-03-28 22:11:00 +01:00
parent 943285f1ed
commit 03bdc0f7c1
4 changed files with 7 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ class TemplatesTestCase(SimpleTestCase):
for needle in html_needles:
needle = needle.format(static_url=static_url)
self.assertInHTML(needle, response.content)
self.assertInHTML(needle, response.content.decode('utf-8'))
def test_page_footer(self):
response = self.response_from_root_view
@@ -50,4 +50,4 @@ class TemplatesTestCase(SimpleTestCase):
</div>
"""
self.assertInHTML(html, response.content)
self.assertInHTML(html, response.content.decode('utf-8'))