diff --git a/test/functional/__init__.py b/test/functional/__init__.py index fb9f421..75856c0 100644 --- a/test/functional/__init__.py +++ b/test/functional/__init__.py @@ -32,7 +32,8 @@ from shutil import rmtree from tempfile import mkdtemp from test import get_config -from test.functional.swift_test_client import Connection, ResponseError +from test.functional.swift_test_client import Account, Connection, \ + ResponseError # This has the side effect of mocking out the xattr module so that unit tests # (and in this case, when in-process functional tests are called for) can run # on file systems that don't support extended attributes. @@ -507,6 +508,11 @@ def teardown_package(): global orig_collate locale.setlocale(locale.LC_COLLATE, orig_collate) + conn = Connection(config) + conn.authenticate() + account = Account(conn, config.get('account', config['username'])) + account.delete_containers() + global in_process if in_process: try: