]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Replace tearDown with addCleanup - Part 2
authorJulia Varlamova <jvarlamova@mirantis.com>
Mon, 17 Feb 2014 13:34:09 +0000 (17:34 +0400)
committerJulia Varlamova <jvarlamova@mirantis.com>
Wed, 23 Apr 2014 11:22:02 +0000 (06:22 -0500)
commit85ec1aca23a298447edbc49cd7616a0716781875
treeddda26b2bf6956c7a016470f6a4be7572a7168eb
parenteb7d21080a29e836f7a0f1b1bcb533d86260ed8a
Replace tearDown with addCleanup - Part 2

Replace tearDown with addCleanup in some cinder unit tests.

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

Remove duplicated self.stubs and self._mox declaration in
cinder/tests/test_windows.py.

Implements blueprint replace-teardown-with-addcleanup

Change-Id: I5865cf0197e1d8229afc706b9b14b746f09b5acd
15 files changed:
cinder/tests/brick/test_brick_connector.py
cinder/tests/image/test_glance.py
cinder/tests/integrated/integrated_helpers.py
cinder/tests/test_backup_ceph.py
cinder/tests/test_coraid.py
cinder/tests/test_glusterfs.py
cinder/tests/test_gpfs.py
cinder/tests/test_huawei_hvs.py
cinder/tests/test_huawei_t_dorado.py
cinder/tests/test_policy.py
cinder/tests/test_quota.py
cinder/tests/test_scality.py
cinder/tests/test_volume.py
cinder/tests/test_volume_types_extra_specs.py
cinder/tests/test_windows.py