Merge "Test: Fix assert_has_calls dict order bug (QoS)"

This commit is contained in:
Jenkins 2017-01-26 12:39:59 +00:00 committed by Gerrit Code Review
commit 9a2d156a9d

View File

@ -78,7 +78,8 @@ class TestQos(test_objects.BaseObjectsTestCase):
'consumer': 'back-end'})
qos_fake_delete.assert_has_calls([
mock.call(self.context, fake.OBJECT_ID, 'key_to_remove1'),
mock.call(self.context, fake.OBJECT_ID, 'key_to_remove2')])
mock.call(self.context, fake.OBJECT_ID, 'key_to_remove2')],
any_order=True)
@mock.patch('oslo_utils.timeutils.utcnow', return_value=timeutils.utcnow())
@mock.patch('cinder.objects.VolumeTypeList.get_all_types_for_qos',