summaryrefslogtreecommitdiff
path: root/heat_integrationtests/functional/test_template_resource.py
diff options
context:
space:
mode:
authorzhufl <zhu.fanglei@zte.com.cn>2016-09-21 10:11:49 +0800
committerzhufl <zhu.fanglei@zte.com.cn>2016-09-30 10:56:31 +0800
commitbc3c16a8e5bff74adc3d5ae958862e4df8cbd9f3 (patch)
tree2f56750f7a8d17d03de18abe101034539b494269 /heat_integrationtests/functional/test_template_resource.py
parentbfd3797cd798f9a6510eedaeb4f298cce9de0cee (diff)
downloadheat-bc3c16a8e5bff74adc3d5ae958862e4df8cbd9f3.tar.gz
Remove unnecessary setUp and tearDown
setUp and tearDown will be automatically called around each testcase, so this is to remove setUp and tearDown that doing nothing additional than super to keep code clean. Change-Id: I8b6943602419d3f360991721d90b61888b55ea60
Diffstat (limited to 'heat_integrationtests/functional/test_template_resource.py')
-rw-r--r--heat_integrationtests/functional/test_template_resource.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/heat_integrationtests/functional/test_template_resource.py b/heat_integrationtests/functional/test_template_resource.py
index ebfd73e8a..ef2f4f5c6 100644
--- a/heat_integrationtests/functional/test_template_resource.py
+++ b/heat_integrationtests/functional/test_template_resource.py
@@ -47,9 +47,6 @@ resource_registry:
"OS::Heat::RandomString": nested.yaml
'''
- def setUp(self):
- super(TemplateResourceTest, self).setUp()
-
def test_nested_env(self):
main_templ = '''
heat_template_version: 2013-05-23
@@ -172,9 +169,6 @@ resource_registry:
"My::NestedSecret": nested.yaml
'''
- def setUp(self):
- super(NestedAttributesTest, self).setUp()
-
def test_stack_ref(self):
nested_templ = '''
heat_template_version: 2014-10-16
@@ -496,9 +490,6 @@ Outputs:
expect=NOCHANGE)),
]
- def setUp(self):
- super(TemplateResourceUpdateTest, self).setUp()
-
def test_template_resource_update_template_schema(self):
stack_identifier = self.stack_create(
template=self.main_template,
@@ -598,9 +589,6 @@ Outputs:
Value: {'Fn::GetAtt': [RealRandom, value]}
'''
- def setUp(self):
- super(TemplateResourceAdoptTest, self).setUp()
-
def _yaml_to_json(self, yaml_templ):
return yaml.safe_load(yaml_templ)
@@ -680,9 +668,6 @@ Outputs:
Value: {'Fn::GetAtt': [RealRandom, value]}
'''
- def setUp(self):
- super(TemplateResourceCheckTest, self).setUp()
-
def test_check(self):
stack_identifier = self.stack_create(
template=self.main_template,
@@ -712,9 +697,6 @@ Resources:
wait_secs: 2
'''
- def setUp(self):
- super(TemplateResourceErrorMessageTest, self).setUp()
-
def test_fail(self):
stack_identifier = self.stack_create(
template=self.template,
@@ -747,9 +729,6 @@ resources:
type: OS::Heat::RandomString
'''
- def setUp(self):
- super(TemplateResourceSuspendResumeTest, self).setUp()
-
def test_suspend_resume(self):
"""Basic test for template resource suspend resume."""
stack_identifier = self.stack_create(