]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix calling setUp() method of superclass from tearDown method.
authorRushi Agrawal <rushi.agr@gmail.com>
Wed, 6 Mar 2013 00:00:39 +0000 (05:30 +0530)
committerRushi Agrawal <rushi.agr@gmail.com>
Wed, 6 Mar 2013 00:00:39 +0000 (05:30 +0530)
In test_netapp.py, the tearDown function was calling setUp of
superclass instead of calling tearDown of superclass. Fixed it
here.

Change-Id: Iab65e60193edcd47d09d7788b0951ef66d816e38

cinder/tests/test_netapp.py

index f13ab6a4a219711532579b7f087d537025cb55b3..15f4242c14a984dfffab7118a81d368648491d53 100644 (file)
@@ -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()