From ec7ccaeb2df8ec9244b0e88488ab3939b989b1bf Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 5 Mar 2015 09:22:04 +0900 Subject: [PATCH] OVS DVR UT: Remove an inappropriate str() conversion db_get_val would return None, not 'None'. This also makes the code consistent with the other copies. Change-Id: Iccf68bf172bfe07ff8913505466f86f024ae6415 --- neutron/tests/unit/openvswitch/test_ovs_dvr_neutron_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/tests/unit/openvswitch/test_ovs_dvr_neutron_agent.py b/neutron/tests/unit/openvswitch/test_ovs_dvr_neutron_agent.py index 9fb0fdacf..80f02c240 100644 --- a/neutron/tests/unit/openvswitch/test_ovs_dvr_neutron_agent.py +++ b/neutron/tests/unit/openvswitch/test_ovs_dvr_neutron_agent.py @@ -146,7 +146,7 @@ class TestOvsDvrNeutronAgent(base.BaseTestCase): with contextlib.nested( mock.patch('neutron.agent.linux.ovs_lib.OVSBridge.' 'db_get_val', - return_value=str(self._old_local_vlan)), + return_value=self._old_local_vlan), mock.patch.object(self.agent.dvr_agent.plugin_rpc, 'get_subnet_for_dvr', return_value={ -- 2.45.2