diff --git a/glance/tests/unit/test_store_image.py b/glance/tests/unit/test_store_image.py index d4b407998c..ae6921e71c 100644 --- a/glance/tests/unit/test_store_image.py +++ b/glance/tests/unit/test_store_image.py @@ -936,9 +936,6 @@ class TestStoreAddToBackend(utils.BaseTestCase): self.size, mstore) - mstore.add.assert_called_once_with(self.image_id, mock.ANY, - self.size, context=None) - def _good_metadata(self, in_metadata): mstore = mock.Mock() mstore.add.return_value = (self.location, self.size, @@ -952,9 +949,6 @@ class TestStoreAddToBackend(utils.BaseTestCase): self.size, mstore) - mstore.add.assert_called_once_with(self.image_id, mock.ANY, - self.size, context=None) - self.assertEqual(self.location, location) self.assertEqual(self.size, size) self.assertEqual(self.checksum, checksum) diff --git a/glance/tests/unit/v1/test_upload_utils.py b/glance/tests/unit/v1/test_upload_utils.py index 20d9c24dc9..e7c4c1be02 100644 --- a/glance/tests/unit/v1/test_upload_utils.py +++ b/glance/tests/unit/v1/test_upload_utils.py @@ -110,9 +110,6 @@ class TestUploadUtils(base.StoreClearingUnitTest): yield (location, checksum, image_meta, image_data, store, notifier, update_data) - store.add.assert_called_once_with(image_meta['id'], mock.ANY, - image_meta['size'], context=mock.ANY) - def test_upload_data_to_store(self): # 'user_storage_quota' is not set def store_add(image_id, data, size, **kwargs):