From: Salvatore Orlando Date: Sun, 14 Jul 2013 22:23:46 +0000 (+0200) Subject: Ensure PortSecurityDBTestCase loads correct plugin X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=fe18aa12d48377e9dae7990396fdaf59c960f687;p=openstack-build%2Fneutron-build.git 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 --- 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):