diff options
author | Harmon <Harmon758@gmail.com> | 2020-02-16 15:48:50 -0600 |
---|---|---|
committer | Harmon <Harmon758@gmail.com> | 2020-02-16 16:17:06 -0600 |
commit | ab361cfecf9c0472f9682d5d18c405bd90ddf6d7 (patch) | |
tree | 35c9e437635786509189ed4aea64f297856be8ea /git/test/test_blob.py | |
parent | 99471bb594c365c7ad7ba99faa9e23ee78255eb9 (diff) | |
download | gitpython-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_blob.py')
-rw-r--r-- | git/test/test_blob.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/git/test/test_blob.py b/git/test/test_blob.py index 4c7f0055..88c50501 100644 --- a/git/test/test_blob.py +++ b/git/test/test_blob.py @@ -4,10 +4,7 @@ # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php -from git.test.lib import ( - TestBase, - assert_equal -) +from git.test.lib import TestBase from git import Blob @@ -15,11 +12,11 @@ class TestBlob(TestBase): def test_mime_type_should_return_mime_type_for_known_types(self): blob = Blob(self.rorepo, **{'binsha': Blob.NULL_BIN_SHA, 'path': 'foo.png'}) - assert_equal("image/png", blob.mime_type) + self.assertEqual("image/png", blob.mime_type) def test_mime_type_should_return_text_plain_for_unknown_types(self): blob = Blob(self.rorepo, **{'binsha': Blob.NULL_BIN_SHA, 'path': 'something'}) - assert_equal("text/plain", blob.mime_type) + self.assertEqual("text/plain", blob.mime_type) def test_nodict(self): self.assertRaises(AttributeError, setattr, self.rorepo.tree()['AUTHORS'], 'someattr', 2) |