Merge "Remove unneeded glance unit test assert calls"
This commit is contained in:
commit
4ef91e3ec5
@ -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)
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user