From ab361cfecf9c0472f9682d5d18c405bd90ddf6d7 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 16 Feb 2020 15:48:50 -0600 Subject: 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 --- git/test/test_util.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'git/test/test_util.py') 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() -- cgit v1.2.1