diff options
author | 2017-12-18 07:34:44 +0000 | |
---|---|---|
committer | 2017-12-18 07:34:44 +0000 | |
commit | 62d12c838b7c008462b7c45731290c385ed98bff (patch) | |
tree | 52e628d3d68cca0acb07b6a57b2ee9168c151a8c /functest/tests/unit/ci/test_check_deployment.py | |
parent | fc0d8c601ce627d5f7b8c5e3eef73bd01c6db7d4 (diff) | |
parent | 3f29dd2f11e3bb847fce5ac56060758d6076e8e7 (diff) |
Merge "Improve the pylint score of functest-core"
Diffstat (limited to 'functest/tests/unit/ci/test_check_deployment.py')
-rw-r--r-- | functest/tests/unit/ci/test_check_deployment.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/functest/tests/unit/ci/test_check_deployment.py b/functest/tests/unit/ci/test_check_deployment.py index 66d1b7af..fa2f2130 100644 --- a/functest/tests/unit/ci/test_check_deployment.py +++ b/functest/tests/unit/ci/test_check_deployment.py @@ -172,11 +172,14 @@ class CheckDeploymentTesting(unittest.TestCase): @mock.patch('functest.ci.check_deployment.LOGGER.info') @mock.patch('functest.opnfv_tests.openstack.snaps.snaps_utils.' - 'get_ext_net_name', return_value='ext-net') + 'get_ext_net_name') def test_check_extnet(self, mock_getext, mock_loginfo): + test_network = 'ext-net' + mock_getext.return_value = test_network self.deployment.check_ext_net() self.assertTrue(mock_getext.called) - mock_loginfo.assert_called_once_with("External network found: ext-net") + mock_loginfo.assert_called_once_with( + "External network found: %s", test_network) @mock.patch('functest.opnfv_tests.openstack.snaps.snaps_utils.' 'get_ext_net_name', return_value='') |