Fix assertItemsEqual usage for py3

assertItemsEqual is not present in python 3 so
we should use six.assertCountEqual for compatibilty
between python 2 and 3.

Change-Id: I0e6c35e0ae033c1669bb978050a7899491edcba8
This commit is contained in:
ghanshyam 2016-06-24 14:42:56 +09:00
parent b355a7c509
commit 2dee5e3fdd
1 changed files with 3 additions and 3 deletions

View File

@ -565,9 +565,9 @@ class NetworksIpV6Test(NetworksTest):
subnets = [sub['id'] for sub in body['subnets']
if sub['network_id'] == network['id']]
test_subnet_ids = [sub['id'] for sub in (subnet1, subnet2)]
self.assertItemsEqual(subnets,
test_subnet_ids,
'Subnet are not in the same network')
six.assertCountEqual(self, subnets,
test_subnet_ids,
'Subnet are not in the same network')
class NetworksIpV6TestAttrs(NetworksIpV6Test):