Merge "Replace assertItemsEqual with assertCountEqual"
This commit is contained in:
commit
f57af91f9a
|
@ -38,7 +38,7 @@ class IndentityProvidersTest(base.BaseIdentityTest):
|
||||||
self.assertEqual(idp_ref['enabled'], idp['enabled'])
|
self.assertEqual(idp_ref['enabled'], idp['enabled'])
|
||||||
|
|
||||||
if 'remote_ids' in idp_ref:
|
if 'remote_ids' in idp_ref:
|
||||||
self.assertItemsEqual(idp_ref['remote_ids'], idp['remote_ids'])
|
self.assertCountEqual(idp_ref['remote_ids'], idp['remote_ids'])
|
||||||
|
|
||||||
def _create_idp(self, idp_id, idp_ref):
|
def _create_idp(self, idp_id, idp_ref):
|
||||||
idp = self.idps_client.create_identity_provider(
|
idp = self.idps_client.create_identity_provider(
|
||||||
|
|
|
@ -32,7 +32,7 @@ class MappingRulesTest(base.BaseIdentityTest):
|
||||||
self.assertIn('rules', mapping)
|
self.assertIn('rules', mapping)
|
||||||
|
|
||||||
if mapping_ref:
|
if mapping_ref:
|
||||||
self.assertItemsEqual(mapping_ref['rules'], mapping['rules'])
|
self.assertCountEqual(mapping_ref['rules'], mapping['rules'])
|
||||||
|
|
||||||
def _create_mapping_rule(self, mapping_id, mapping_ref):
|
def _create_mapping_rule(self, mapping_id, mapping_ref):
|
||||||
mapping = self.mappings_client.create_mapping_rule(
|
mapping = self.mappings_client.create_mapping_rule(
|
||||||
|
|
|
@ -219,7 +219,7 @@ class OAUTH1TokensTest(base.BaseIdentityTest):
|
||||||
role_ids = [role['id'] for role in roles['roles']]
|
role_ids = [role['id'] for role in roles['roles']]
|
||||||
|
|
||||||
# check that role ids matches
|
# check that role ids matches
|
||||||
self.assertItemsEqual(fetched_role_ids, role_ids)
|
self.assertCountEqual(fetched_role_ids, role_ids)
|
||||||
|
|
||||||
@decorators.idempotent_id('28aee994-86b1-4596-a652-572f558045e7')
|
@decorators.idempotent_id('28aee994-86b1-4596-a652-572f558045e7')
|
||||||
def test_show_role_for_access_token(self):
|
def test_show_role_for_access_token(self):
|
||||||
|
|
Loading…
Reference in New Issue