Duplicate test case name in unit/test_quota.py, see https://github.com/openstack/glance/blob/master/glance/tests/unit/test_quota.py#L193
def test_exceed_append_location(self):
image_size = 10
max_images = 2
quota = image_size * max_images
self.config(user_storage_quota=quota)
image = self._get_image(image_size=image_size,
location_count=max_images)
self.assertRaises(exception.StorageQuotaFull,
image.locations.append,
{'url': 'file:///a/path', 'metadata': {}})
def test_exceed_append_location(self):
image_size = 10
max_images = 2
quota = image_size * max_images
self.config(user_storage_quota=quota)
image = self._get_image(image_size=image_size,
location_count=max_images)
self.assertRaises(exception.StorageQuotaFull,
image.locations.insert,
0,
{'url': 'file:///a/path', 'metadata': {}})
And I would like to see the test case name 'test_iadd_ location' can be refactored, see https:/ /github. com/openstack/ glance/ blob/master/ glance/ tests/unit/ test_quota. py#L179 because I didn't see any justification to use 'iadd'