Merge "Correct test_list_meters_meter_id to work with py3"
This commit is contained in:
commit
551402cd13
@ -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('+'))
|
||||||
|
Loading…
Reference in New Issue
Block a user