From: Sean McCully Date: Wed, 2 Oct 2013 07:36:05 +0000 (-0500) Subject: Add clear_db to cleanup for TestCiscoNexusPlugin X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b4c2db5ea0ed3116de49b69dae4c4f6c9114a152;p=openstack-build%2Fneutron-build.git Add clear_db to cleanup for TestCiscoNexusPlugin Fixes Bug: #1234012 Change-Id: I0829f04ac1a0760d96babcb1154f4f569a0f848f (cherry picked from commit b4167ed095dbd47a137ff22674ae13aba3a50513) --- diff --git a/neutron/tests/unit/cisco/test_nexus_plugin.py b/neutron/tests/unit/cisco/test_nexus_plugin.py index 84e819f77..2908e0cd2 100644 --- a/neutron/tests/unit/cisco/test_nexus_plugin.py +++ b/neutron/tests/unit/cisco/test_nexus_plugin.py @@ -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',