]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Replace tearDown with addCleanup - Part 5
authorJulia Varlamova <jvarlamova@mirantis.com>
Thu, 27 Feb 2014 14:31:29 +0000 (18:31 +0400)
committerGerrit Code Review <review@openstack.org>
Tue, 15 Apr 2014 13:51:14 +0000 (13:51 +0000)
commit60a28f35bf7530ccff39b1f0ea849d0439f49d70
treed22e37eee2c53befe4504d24eff9d74f4ff30e5d
parent7cd6d18c28ac552ddf4b76f75b6da470b44fc812
Replace tearDown with addCleanup - Part 5

Replace tearDown with addCleanup in:
- cinder/test.py
- cinder/tests/test_migrations.py

Remove empty tearDown methods from:
- cinder/tests/test_hp3par.py
- cinder/tests/test_hplefthand.py
- cinder/tests/test_ibmnas.py
since it does not add any functionality (and empty setUp methods as well).

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

Implements blueprint replace-teardown-with-addcleanup

Change-Id: Id2fdd3e2e1ab8458083697b6ea6714ca019fd00a
cinder/test.py
cinder/tests/test_hp3par.py
cinder/tests/test_hplefthand.py
cinder/tests/test_ibmnas.py
cinder/tests/test_migrations.py