From ae4b8540f646e9f5f42174535b3756da990d343e Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Sun, 22 Apr 2018 21:17:19 +0200 Subject: mirrors.tests: convert response.content to str --- mirrors/tests/test_mirrorurl.py | 2 +- mirrors/tests/test_models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mirrors') diff --git a/mirrors/tests/test_mirrorurl.py b/mirrors/tests/test_mirrorurl.py index cd6eb763..4fe8f22a 100644 --- a/mirrors/tests/test_mirrorurl.py +++ b/mirrors/tests/test_mirrorurl.py @@ -21,7 +21,7 @@ class MirrorUrlTest(TestCase): def test_mirror_overview(self): response = self.client.get('/mirrors/') self.assertEqual(response.status_code, 200) - self.assertIn(self.mirror_url.mirror.name, response.content) + self.assertIn(self.mirror_url.mirror.name, response.content.decode()) def testClean(self): # TODO: add test for self.mirror_url.clean() diff --git a/mirrors/tests/test_models.py b/mirrors/tests/test_models.py index 1e1eafec..ea7345ec 100644 --- a/mirrors/tests/test_models.py +++ b/mirrors/tests/test_models.py @@ -22,7 +22,7 @@ class MirrorUrlTest(TestCase): def test_mirror_overview(self): response = self.client.get('/mirrors/') self.assertEqual(response.status_code, 200) - self.assertIn(self.mirror_url.mirror.name, response.content) + self.assertIn(self.mirror_url.mirror.name, response.content.decode()) def testClean(self): # TODO: add test for self.mirror_url.clean() -- cgit v1.2.3-55-g3dc8