]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Add clear_db to cleanup for TestCiscoNexusPlugin
authorSean McCully <sean_mccully@yahoo.com>
Wed, 2 Oct 2013 07:36:05 +0000 (02:36 -0500)
committerMark McClain <mark.mcclain@dreamhost.com>
Wed, 9 Oct 2013 14:23:25 +0000 (10:23 -0400)
Fixes Bug: #1234012
Change-Id: I0829f04ac1a0760d96babcb1154f4f569a0f848f
(cherry picked from commit b4167ed095dbd47a137ff22674ae13aba3a50513)

neutron/tests/unit/cisco/test_nexus_plugin.py

index 84e819f770bd150a6d066afeda00d9584da40a9b..2908e0cd224aa4faba2760297ba01680556e837a 100644 (file)
@@ -140,6 +140,7 @@ class TestCiscoNexusPlugin(base.BaseTestCase):
             }
             db.configure_db()
 
+        self.addCleanup(db.clear_db)
         # Use a mock netconf client
         self.mock_ncclient = mock.Mock()
         self.patch_obj = mock.patch.dict('sys.modules',