Fix py3 issue in functional tests

Change expected result bytes -> string, requests returns
result as string, which is unicode in py3.

Change-Id: I4fe6792303d9f126173045da038dcaf518a5bcc3
changes/21/321521/1
Anton Arefiev 7 years ago
parent 6908d534f2
commit e33d60e846

@ -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

Loading…
Cancel
Save