Merge "Replace assertItemsEqual with assertEqual"

This commit is contained in:
Zuul 2020-11-10 01:09:37 +00:00 committed by Gerrit Code Review
commit 0769270ec5
1 changed files with 3 additions and 1 deletions

View File

@ -338,7 +338,9 @@ class TaggedAttachmentsTest(DeviceTaggingBase):
found_devices = [d['tags'][0] for d in md_dict['devices']
if d.get('tags')]
try:
self.assertItemsEqual(found_devices, ['nic-tag', 'volume-tag'])
self.assertEqual(
sorted(found_devices),
sorted(['nic-tag', 'volume-tag']))
return True
except Exception:
return False