summaryrefslogtreecommitdiff
path: root/git/test/test_git.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-16 17:10:09 -0600
committerHarmon <Harmon758@gmail.com>2020-02-16 17:17:05 -0600
commit7fd8768c64d192b0b26a00d6c12188fcbc2e3224 (patch)
treee5d8c1ae0bc6e6819bcd3da2e1ca48b8d7d3288a /git/test/test_git.py
parenteca69510d250f4e69c43a230610b0ed2bd23a2e7 (diff)
downloadgitpython-7fd8768c64d192b0b26a00d6c12188fcbc2e3224.tar.gz
Replace assert_true with assertTrue
Also change TestOutputStream to subclass TestBase rather than object
Diffstat (limited to 'git/test/test_git.py')
-rw-r--r--git/test/test_git.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/git/test/test_git.py b/git/test/test_git.py
index 69e8b0b4..75e35ab7 100644
--- a/git/test/test_git.py
+++ b/git/test/test_git.py
@@ -22,7 +22,6 @@ from git.compat import is_darwin
from git.test.lib import (
TestBase,
patch,
- assert_true,
fixture_path
)
from git.test.lib import with_rw_directory
@@ -48,7 +47,7 @@ class TestGit(TestBase):
def test_call_process_calls_execute(self, git):
git.return_value = ''
self.git.version()
- assert_true(git.called)
+ self.assertTrue(git.called)
self.assertEqual(git.call_args, ((['git', 'version'],), {}))
def test_call_unpack_args_unicode(self):
@@ -95,7 +94,7 @@ class TestGit(TestBase):
def test_it_ignores_false_kwargs(self, git):
# this_should_not_be_ignored=False implies it *should* be ignored
self.git.version(pass_this_kwarg=False)
- assert_true("pass_this_kwarg" not in git.call_args[1])
+ self.assertTrue("pass_this_kwarg" not in git.call_args[1])
def test_it_raises_proper_exception_with_output_stream(self):
tmp_file = TemporaryFile()