summaryrefslogtreecommitdiff
path: root/git/test/test_blob.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/test_blob.py')
-rw-r--r--git/test/test_blob.py9
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)