Merge "Use addClassResourceCleanup in test_container_sync"
This commit is contained in:
commit
d4aba83b03
@ -71,14 +71,12 @@ class ContainerSyncTest(base.BaseObjectTest):
|
||||
(cls.container_client_alt, cls.object_client_alt)
|
||||
for cont_name, client in cls.clients.items():
|
||||
client[0].create_container(cont_name)
|
||||
cls.addClassResourceCleanup(base.delete_containers,
|
||||
cont_name,
|
||||
client[0],
|
||||
client[1])
|
||||
cls.containers.append(cont_name)
|
||||
|
||||
@classmethod
|
||||
def resource_cleanup(cls):
|
||||
for client in cls.clients.values():
|
||||
cls.delete_containers(client[0], client[1])
|
||||
super(ContainerSyncTest, cls).resource_cleanup()
|
||||
|
||||
def _test_container_synchronization(self, make_headers):
|
||||
# container to container synchronization
|
||||
# to allow/accept sync requests to/from other accounts
|
||||
|
Loading…
x
Reference in New Issue
Block a user