diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2018-04-22 21:17:19 +0200 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2019-01-21 21:19:58 +0100 |
commit | ae4b8540f646e9f5f42174535b3756da990d343e (patch) | |
tree | 74553f450d701da4475f7a50a8c963dc484a23c6 | |
parent | e8db6e68a5b7f5eae3919f7b928bf521d7931d9f (diff) | |
download | archweb-ae4b8540f646e9f5f42174535b3756da990d343e.tar.gz archweb-ae4b8540f646e9f5f42174535b3756da990d343e.zip |
mirrors.tests: convert response.content to str
-rw-r--r-- | mirrors/tests/test_mirrorurl.py | 2 | ||||
-rw-r--r-- | mirrors/tests/test_models.py | 2 |
2 files changed, 2 insertions, 2 deletions
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() |