From fe18aa12d48377e9dae7990396fdaf59c960f687 Mon Sep 17 00:00:00 2001 From: Salvatore Orlando Date: Mon, 15 Jul 2013 00:23:46 +0200 Subject: [PATCH] Ensure PortSecurityDBTestCase loads correct plugin Bug 1201569 If a plugin is passed to the setUp method, that plugin should be loaded instead od DB_PLUGIN_KLASS Change-Id: I81df9f62e7399f5a76a07e504679ee8311e5855e --- neutron/tests/unit/test_extension_portsecurity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/tests/unit/test_extension_portsecurity.py b/neutron/tests/unit/test_extension_portsecurity.py index 695fb01bb..1189d13af 100644 --- a/neutron/tests/unit/test_extension_portsecurity.py +++ b/neutron/tests/unit/test_extension_portsecurity.py @@ -180,7 +180,7 @@ class PortSecurityTestPlugin(db_base_plugin_v2.NeutronDbPluginV2, class PortSecurityDBTestCase(PortSecurityTestCase): def setUp(self, plugin=None): - test_config['plugin_name_v2'] = DB_PLUGIN_KLASS + test_config['plugin_name_v2'] = plugin or DB_PLUGIN_KLASS super(PortSecurityDBTestCase, self).setUp() def tearDown(self): -- 2.45.2