From e33d60e8467a1078dd57260b2cf10061e36f42b7 Mon Sep 17 00:00:00 2001 From: Anton Arefiev Date: Thu, 26 May 2016 15:33:48 +0300 Subject: [PATCH] Fix py3 issue in functional tests Change expected result bytes -> string, requests returns result as string, which is unicode in py3. Change-Id: I4fe6792303d9f126173045da038dcaf518a5bcc3 --- ironic_inspector/test/functional.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ironic_inspector/test/functional.py b/ironic_inspector/test/functional.py index 88241e0ae..74118e5c4 100644 --- a/ironic_inspector/test/functional.py +++ b/ironic_inspector/test/functional.py @@ -463,7 +463,7 @@ class Test(Base): res = self.call_reapply(self.uuid) self.assertEqual(202, res.status_code) - self.assertEqual(b'', res.text) + self.assertEqual('', res.text) eventlet.greenthread.sleep(DEFAULT_SLEEP) # reapply request data @@ -491,7 +491,7 @@ class Test(Base): get_mock.return_value = ramdisk_data res = self.call_reapply(self.uuid) self.assertEqual(202, res.status_code) - self.assertEqual(b'', res.text) + self.assertEqual('', res.text) eventlet.greenthread.sleep(DEFAULT_SLEEP) # reapply saves the result