Merge "Correct test_list_meters_meter_id to work with py3"

This commit is contained in:
Jenkins 2015-09-10 23:48:59 +00:00 committed by Gerrit Code Review
commit 551402cd13

View File

@ -791,5 +791,5 @@ class TestListMeters(v2.FunctionalTest,
self.assertEqual(expected, i['meter_id']) self.assertEqual(expected, i['meter_id'])
self.assertFalse(i['meter_id'].endswith('\n')) self.assertFalse(i['meter_id'].endswith('\n'))
self.assertEqual( self.assertEqual(
[i['resource_id'].encode('utf-8'), i['name'].encode('utf-8')], [i['resource_id'], i['name']],
base64.b64decode(i['meter_id']).split('+')) base64.b64decode(i['meter_id']).decode('utf-8').split('+'))