Merge "change assert(Not)Equals to assert(Not)Equal"

This commit is contained in:
Jenkins 2017-09-26 14:47:58 +00:00 committed by Gerrit Code Review
commit eff67d90f7
3 changed files with 5 additions and 5 deletions

View File

@ -114,7 +114,7 @@ class UpdateTests(CmdTestsBase):
jenkins_delete_job.assert_has_calls(calls)
# to ensure only the calls we expected were made, have to check
# there were no others, as no API call for assert_has_only_calls
self.assertEquals(jenkins_delete_job.call_count, len(calls))
self.assertEqual(jenkins_delete_job.call_count, len(calls))
def test_update_timeout_not_set(self):
"""Validate update timeout behavior when timeout not explicitly configured.

View File

@ -130,8 +130,8 @@ class TestConfigs(CmdTestsBase):
# contains the expected timeout value.
jjb_config = jenkins_mock.call_args[0][0]
self.assertEquals(jjb_config.jenkins['timeout'],
builder._DEFAULT_TIMEOUT)
self.assertEqual(jjb_config.jenkins['timeout'],
builder._DEFAULT_TIMEOUT)
@mock.patch('jenkins_jobs.cli.subcommand.update.JenkinsManager')
def test_update_timeout_set(self, jenkins_mock):
@ -154,4 +154,4 @@ class TestConfigs(CmdTestsBase):
# contains the expected timeout value.
jjb_config = jenkins_mock.call_args[0][0]
self.assertEquals(jjb_config.jenkins['timeout'], 0.2)
self.assertEqual(jjb_config.jenkins['timeout'], 0.2)

View File

@ -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)