From dd49b2fb7d44895553b9a51a3b36aa05a825c330 Mon Sep 17 00:00:00 2001 From: zhufl Date: Wed, 25 Oct 2017 13:45:26 +0800 Subject: [PATCH] Use addClassResourceCleanup in TagsExtTest This is to use addClassResourceCleanup in TagsExtTest, so resource_cleanup can be removed. Change-Id: I7d651bc00fa6eb5f6277091563e69219be798b27 --- tempest/api/network/test_tags.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tempest/api/network/test_tags.py b/tempest/api/network/test_tags.py index 409d556eb4..85f6896bef 100644 --- a/tempest/api/network/test_tags.py +++ b/tempest/api/network/test_tags.py @@ -131,11 +131,8 @@ class TagsExtTest(base.BaseNetworkTest): prefix = CONF.network.default_network cls.subnetpool = cls.subnetpools_client.create_subnetpool( name=subnetpool_name, prefixes=prefix)['subnetpool'] - - @classmethod - def resource_cleanup(cls): - cls.subnetpools_client.delete_subnetpool(cls.subnetpool['id']) - super(TagsExtTest, cls).resource_cleanup() + cls.addClassResourceCleanup(cls.subnetpools_client.delete_subnetpool, + cls.subnetpool['id']) def _create_tags_for_each_resource(self): # Create a tag for each resource in `SUPPORTED_RESOURCES` and return