mirrors.tests: convert response.content to str
This commit is contained in:
parent
e8db6e68a5
commit
ae4b8540f6
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user