Merge "Use addClassResourceCleanup in account service test"

This commit is contained in:
Zuul 2017-12-18 07:56:03 +00:00 committed by Gerrit Code Review
commit dcd10b47e6

View File

@ -44,14 +44,13 @@ class AccountTest(base.BaseObjectTest):
for i in range(ord('a'), ord('f') + 1):
name = data_utils.rand_name(name='%s-' % six.int2byte(i))
cls.container_client.update_container(name)
cls.addClassResourceCleanup(base.delete_containers,
[name],
cls.container_client,
cls.object_client)
cls.containers.append(name)
cls.containers_count = len(cls.containers)
@classmethod
def resource_cleanup(cls):
cls.delete_containers()
super(AccountTest, cls).resource_cleanup()
@decorators.attr(type='smoke')
@decorators.idempotent_id('3499406a-ae53-4f8c-b43a-133d4dc6fe3f')
def test_list_containers(self):