Merge "change assert(Not)Equals to assert(Not)Equal"
This commit is contained in:
commit
eff67d90f7
@ -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.
|
||||
|
@ -130,7 +130,7 @@ class TestConfigs(CmdTestsBase):
|
||||
# contains the expected timeout value.
|
||||
|
||||
jjb_config = jenkins_mock.call_args[0][0]
|
||||
self.assertEquals(jjb_config.jenkins['timeout'],
|
||||
self.assertEqual(jjb_config.jenkins['timeout'],
|
||||
builder._DEFAULT_TIMEOUT)
|
||||
|
||||
@mock.patch('jenkins_jobs.cli.subcommand.update.JenkinsManager')
|
||||
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user