content from editor detail page must be decoded as utf-8 in tests.
@@ -240,10 +240,10 @@ class ViewsTestCase(TestCase):
set([app1, app2, app3, app4]))
content = response.render().content
- self.assertIn(app1.partner.company_name, content)
- self.assertIn(app2.partner.company_name, content)
- self.assertIn(app3.partner.company_name, content)
- self.assertIn(app4.partner.company_name, content)
+ self.assertIn(app1.partner.company_name, content.decode("utf-8"))
+ self.assertIn(app2.partner.company_name, content.decode("utf-8"))
+ self.assertIn(app3.partner.company_name, content.decode("utf-8"))
+ self.assertIn(app4.partner.company_name, content.decode("utf-8"))
# We can't use assertTemplateUsed with RequestFactory (only with
# Client), and testing that the rendered content is equal to an
