From: Rushi Agrawal Date: Wed, 6 Mar 2013 00:00:39 +0000 (+0530) Subject: Fix calling setUp() method of superclass from tearDown method. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b3ee8b799cd5bd33326d8a9f8baf8f1bcf2eb20c;p=openstack-build%2Fcinder-build.git Fix calling setUp() method of superclass from tearDown method. In test_netapp.py, the tearDown function was calling setUp of superclass instead of calling tearDown of superclass. Fixed it here. Change-Id: Iab65e60193edcd47d09d7788b0951ef66d816e38 --- diff --git a/cinder/tests/test_netapp.py b/cinder/tests/test_netapp.py index f13ab6a4a..15f4242c1 100644 --- a/cinder/tests/test_netapp.py +++ b/cinder/tests/test_netapp.py @@ -991,7 +991,7 @@ class NetAppDriverTestCase(test.TestCase): def tearDown(self): shutil.rmtree(self.tempdir) - super(NetAppDriverTestCase, self).setUp() + super(NetAppDriverTestCase, self).tearDown() def test_connect(self): self.driver.check_for_setup_error()