From 708a5744f6f5415a827bb96705b3a2881fd25c42 Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Wed, 16 Mar 2016 18:00:03 +0800 Subject: [PATCH] Remove redundant lines in test_instance_group.py Fix the comment of commit ee086961a631b7af8ae8b7a215e337a6020eef34, to delete redundant lines of test. Change-Id: Id618efada450b6ab1059777f529498e916fd0517 --- heat/tests/openstack/heat/test_instance_group.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/heat/tests/openstack/heat/test_instance_group.py b/heat/tests/openstack/heat/test_instance_group.py index 3f34d93e09..6180d255b1 100644 --- a/heat/tests/openstack/heat/test_instance_group.py +++ b/heat/tests/openstack/heat/test_instance_group.py @@ -87,16 +87,13 @@ class TestInstanceGroup(common.HeatTestCase): self.assertIn('(JobServerConfig) reference can not be found', six.text_type(error)) # test resource name of instance group not WebServerGroup, so no ref - props = self.instance_group.properties.data props['LaunchConfigurationName'] = 'LaunchConfig' error = self.assertRaises(ValueError, self.instance_group.validate) self.assertIn('LaunchConfigurationName (LaunchConfig) requires a ' 'reference to the configuration not just the ' 'name of the resource.', six.text_type(error)) - # test validate ok - props = self.instance_group.properties.data - props['LaunchConfigurationName'] = 'LaunchConfig' + # test validate ok if change instance_group name to 'WebServerGroup' self.instance_group.name = 'WebServerGroup' self.instance_group.validate()