From 20e6c6f987f2373f03f78308f16c36b4bd22c390 Mon Sep 17 00:00:00 2001 From: Peter Razumovsky Date: Mon, 7 Sep 2015 17:48:58 +0300 Subject: [PATCH] Delete children handle_delete testing (Glance) Delete children handle_delete correctness testing for Resource's children classes. This tests can be deleted because of testing correctness of handle_delete in test_resource. Change-Id: I49bf9eb093055a5f3ac44191392c8c34082ba867 --- heat/tests/test_glance_image.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/heat/tests/test_glance_image.py b/heat/tests/test_glance_image.py index acdaa442f8..58df3c14cd 100644 --- a/heat/tests/test_glance_image.py +++ b/heat/tests/test_glance_image.py @@ -11,7 +11,6 @@ # License for the specific language governing permissions and limitations # under the License. -from glanceclient import exc as glance_exceptions import mock import six @@ -186,17 +185,6 @@ class GlanceImageTest(common.HeatTestCase): self.my_image.handle_create() self.assertEqual(image_id, self.my_image.resource_id) - def test_image_handle_delete(self): - self.resource_id = None - self.assertIsNone(self.my_image.handle_delete()) - image_id = '41f0e60c-ebb4-4375-a2b4-845ae8b9c995' - self.my_image.resource_id = image_id - self.images.delete.return_value = None - self.assertEqual('41f0e60c-ebb4-4375-a2b4-845ae8b9c995', - self.my_image.handle_delete()) - self.images.delete.side_effect = glance_exceptions.HTTPNotFound(404) - self.assertIsNone(self.my_image.handle_delete()) - def test_image_show_resourse_v1(self): self.glanceclient.version = 1.0 self.my_image.resource_id = 'test_image_id'