From 8744b5b1a501fafe05f32ce1a2bcadda5d0025f6 Mon Sep 17 00:00:00 2001 From: zhangyangyang Date: Wed, 13 Sep 2017 17:22:48 +0800 Subject: change assert(Not)Equals to assert(Not)Equal According to http://docs.python.org/2/library/unittest.html assert(Not)Equals is a deprecated alias of assert(Not)Equal. Change-Id: Ibadf2b2c6cb09db6f5cc191240aad2ac8cb4ea33 Closes-Bug: #1329757 --- tests/jenkins_manager/test_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/jenkins_manager') diff --git a/tests/jenkins_manager/test_manager.py b/tests/jenkins_manager/test_manager.py index 6a8edb25..a1738329 100644 --- a/tests/jenkins_manager/test_manager.py +++ b/tests/jenkins_manager/test_manager.py @@ -67,7 +67,7 @@ class TestCaseTestJenkinsManager(base.BaseTestCase): patches['is_managed'].side_effect = [True, True] self.builder.delete_old_managed() - self.assertEquals(patches['delete_job'].call_count, 2) + self.assertEqual(patches['delete_job'].call_count, 2) def _get_plugins_info_error_test(self, error_string): builder = jenkins_jobs.builder.JenkinsManager(self.jjb_config) -- cgit