Remove redundant lines in test_instance_group.py

Fix the comment of commit ee086961a6,
to delete redundant lines of test.

Change-Id: Id618efada450b6ab1059777f529498e916fd0517
This commit is contained in:
huangtianhua 2016-03-16 18:00:03 +08:00
parent 6373e1f7a7
commit 708a5744f6

View File

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