summaryrefslogtreecommitdiff
path: root/git/test/test_git.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-16 14:04:43 -0600
committerHarmon <Harmon758@gmail.com>2020-02-16 14:04:43 -0600
commite671d243c09aa8162b5c0b7f12496768009a6db0 (patch)
tree5d2914d4b123c9b847e5468f2adecd3976c76999 /git/test/test_git.py
parent8cb3e0cac2f1886e4b10ea3b461572e51424acc7 (diff)
downloadgitpython-e671d243c09aa8162b5c0b7f12496768009a6db0.tar.gz
Replace deprecated assertEquals alias with assertEqual in TestGit
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r--git/test/test_git.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py
index 54057f49..a3ba548d 100644
--- a/git/test/test_git.py
+++ b/git/test/test_git.py
@@ -193,17 +193,17 @@ class TestGit(TestBase):
# This work because any command after git --version is ignored
git_version = self.git(version=True).NoOp()
git_command_version = self.git.version()
- self.assertEquals(git_version, git_command_version)
+ self.assertEqual(git_version, git_command_version)
def test_persistent_options(self):
git_command_version = self.git.version()
# analog to test_options_are_passed_to_git
self.git.set_persistent_git_options(version=True)
git_version = self.git.NoOp()
- self.assertEquals(git_version, git_command_version)
+ self.assertEqual(git_version, git_command_version)
# subsequent calls keep this option:
git_version_2 = self.git.NoOp()
- self.assertEquals(git_version_2, git_command_version)
+ self.assertEqual(git_version_2, git_command_version)
# reset to empty:
self.git.set_persistent_git_options()
@@ -212,7 +212,7 @@ class TestGit(TestBase):
def test_single_char_git_options_are_passed_to_git(self):
input_value = 'TestValue'
output_value = self.git(c='user.name=%s' % input_value).config('--get', 'user.name')
- self.assertEquals(input_value, output_value)
+ self.assertEqual(input_value, output_value)
def test_change_to_transform_kwargs_does_not_break_command_options(self):
self.git.log(n=1)