]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
OVS DVR UT: Remove an inappropriate str() conversion
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Thu, 5 Mar 2015 00:22:04 +0000 (09:22 +0900)
committerYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Tue, 17 Mar 2015 12:43:17 +0000 (21:43 +0900)
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

index 9fb0fdacf2fa4a38e0b49153c3b130cf097227ca..80f02c24095664f7b3b40b599f20688676dfbc25 100644 (file)
@@ -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={