FIX/UPD: tests are OK with python3.
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user