From 77f3df5f118c040a8d9e633181e5105429957dfc Mon Sep 17 00:00:00 2001 From: Venkata Harshavardhan Reddy Allu Date: Thu, 21 Mar 2019 20:02:34 +0530 Subject: Flake8 fixes Change-Id: Ia0012ebb6af1faa8028b45545cd1f93ea5ed22f0 Signed-off-by: Venkata Harshavardhan Reddy Allu --- sfc/unit_tests/unit/lib/test_openstack_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sfc/unit_tests/unit/lib/test_openstack_utils.py') diff --git a/sfc/unit_tests/unit/lib/test_openstack_utils.py b/sfc/unit_tests/unit/lib/test_openstack_utils.py index 8915c45d..aa7ef123 100644 --- a/sfc/unit_tests/unit/lib/test_openstack_utils.py +++ b/sfc/unit_tests/unit/lib/test_openstack_utils.py @@ -74,7 +74,7 @@ class SfcOpenStackUtilsTesting(unittest.TestCase): """ log_calls = [call("OS_NETWORK_API_VERSION is 1")] result = self.os_sfc.get_neutron_client_version() - assert result is '1' + assert result == '1' mock_log.info.assert_has_calls(log_calls) @patch('sfc.lib.openstack_utils.logger', autospec=True) @@ -985,8 +985,8 @@ class SfcOpenStackUtilsTesting(unittest.TestCase): log_calls_info = [call('Creating the port pairs...'), call('Creating the port pair groups for name')] log_calls_warn = [call('Chain creation failed due to port pair group ' - 'creation failed for vnf %(vnf)', - instance_obj.name)] + 'creation failed for vnf ' + '{}'.format(instance_obj.name))] self.neutron_client.create_sfc_port_pair.return_value = \ {'port_pair': {'id': 'pp_id'}} self.neutron_client.list_sfc_port_pairs.return_value = \ -- cgit 1.2.3-korg