FIX/UPD: tests are OK with python3.
This commit is contained in:
@@ -72,7 +72,7 @@ class EmailTestMixin(object):
|
||||
try:
|
||||
self.assertEqual(line, expected_line)
|
||||
except AssertionError as e:
|
||||
self.fail('line %d: %s' % (i, e.message))
|
||||
self.fail('line %d: %s' % (i, e))
|
||||
self.assertEqual(mail.body, body)
|
||||
|
||||
def setUp(self):
|
||||
|
||||
@@ -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