From 40705b6521c2684b60e3acc9824bb1f16a7e4a1e Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sat, 27 Jul 2019 17:09:05 +0200 Subject: Switch to Python 3.7 and Alpine 3.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pylint is updated to 2.3.1 (lastest py3.7 version) Change-Id: I8b70e9764e2802aeb517969c265fbebfa03458ce Signed-off-by: Cédric Ollivier --- functest_kubernetes/test_k8stest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'functest_kubernetes') diff --git a/functest_kubernetes/test_k8stest.py b/functest_kubernetes/test_k8stest.py index 81d92853..16b0f246 100644 --- a/functest_kubernetes/test_k8stest.py +++ b/functest_kubernetes/test_k8stest.py @@ -38,8 +38,8 @@ class K8sTests(unittest.TestCase): self.k8stesting.config = 'not_file' with mock.patch.object(self.k8stesting, '_K8sTesting__logger') as mock_logger: - self.assertEquals(self.k8stesting.run(), - testcase.TestCase.EX_RUN_ERROR) + self.assertEqual(self.k8stesting.run(), + testcase.TestCase.EX_RUN_ERROR) mock_logger.error.assert_called_with( "Cannot run k8s testcases. Config file not found") mock_func.assert_called_with('not_file') @@ -54,8 +54,8 @@ class K8sTests(unittest.TestCase): @mock.patch('functest_kubernetes.k8stest.os.path.isfile') @mock.patch('functest_kubernetes.k8stest.subprocess.Popen') def test_run(self, *args): - self.assertEquals(self.k8stesting.run(), - testcase.TestCase.EX_OK) + self.assertEqual(self.k8stesting.run(), + testcase.TestCase.EX_OK) for loop in range(3): args[loop].assert_called() -- cgit 1.2.3-korg