Merge "Remove unneeded glance unit test assert calls"

This commit is contained in:
Jenkins 2016-01-27 01:58:30 +00:00 committed by Gerrit Code Review
commit 4ef91e3ec5
2 changed files with 0 additions and 9 deletions

View File

@ -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)

View File

@ -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):