summaryrefslogtreecommitdiff
path: root/git/test/test_util.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-16 15:48:50 -0600
committerHarmon <Harmon758@gmail.com>2020-02-16 16:17:06 -0600
commitab361cfecf9c0472f9682d5d18c405bd90ddf6d7 (patch)
tree35c9e437635786509189ed4aea64f297856be8ea /git/test/test_util.py
parent99471bb594c365c7ad7ba99faa9e23ee78255eb9 (diff)
downloadgitpython-ab361cfecf9c0472f9682d5d18c405bd90ddf6d7.tar.gz
Replace assert_equal with assertEqual
Also change TestActor to subclass TestBase rather than object and create and use base TestCommitSerialization class for assert_commit_serialization method
Diffstat (limited to 'git/test/test_util.py')
-rw-r--r--git/test/test_util.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/git/test/test_util.py b/git/test/test_util.py
index 1560affb..77fbdeb9 100644
--- a/git/test/test_util.py
+++ b/git/test/test_util.py
@@ -21,10 +21,7 @@ from git.objects.util import (
parse_date,
tzoffset,
from_timestamp)
-from git.test.lib import (
- TestBase,
- assert_equal
-)
+from git.test.lib import TestBase
from git.util import (
LockFile,
BlockingLockFile,
@@ -126,8 +123,8 @@ class TestUtils(TestBase):
self.assertEqual(wcpath, wpath.replace('/', '\\'), cpath)
def test_it_should_dashify(self):
- assert_equal('this-is-my-argument', dashify('this_is_my_argument'))
- assert_equal('foo', dashify('foo'))
+ self.assertEqual('this-is-my-argument', dashify('this_is_my_argument'))
+ self.assertEqual('foo', dashify('foo'))
def test_lock_file(self):
my_file = tempfile.mktemp()