mirrors.tests: convert response.content to str

This commit is contained in:
Jelle van der Waa 2018-04-22 21:17:19 +02:00
parent e8db6e68a5
commit ae4b8540f6
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ def testGetAbsoluteUrl(self):
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()

View File

@ -22,7 +22,7 @@ def testGetAbsoluteUrl(self):
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()