]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Replace tearDown with addCleanup
authorJulia Varlamova <jvarlamova@mirantis.com>
Wed, 12 Feb 2014 14:52:45 +0000 (18:52 +0400)
committerJulia Varlamova <jvarlamova@mirantis.com>
Tue, 25 Feb 2014 11:02:02 +0000 (15:02 +0400)
commit48d2b1cb01b6f5e3be82207460dce6b42587e81b
tree9aeb9d48be3c4ca137460592e7dceb5a272eb177
parentee1b6428c7370fe1c488ec74ac87f7388c628677
Replace tearDown with addCleanup

Infra team has indicated that tearDown should not be used and should
be replaced with addCleanup in all places.

This patch replaces tearDown with addCleanup methods in cinder/tests/api.

Implements blueprint replace-teardown-with-addcleanup

Change-Id: I640c1985bf7fce6f2fbd4de8e56448b6c9af51ca
cinder/tests/api/contrib/test_admin_actions.py
cinder/tests/api/contrib/test_backups.py
cinder/tests/api/contrib/test_qos_specs_manage.py
cinder/tests/api/contrib/test_services.py
cinder/tests/api/contrib/test_types_extra_specs.py
cinder/tests/api/contrib/test_types_manage.py
cinder/tests/api/contrib/test_volume_actions.py
cinder/tests/api/contrib/test_volume_encryption_metadata.py
cinder/tests/api/contrib/test_volume_transfer.py
cinder/tests/api/contrib/test_volume_type_encryption.py
cinder/tests/api/v2/test_limits.py