diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2011-04-07 20:17:00 +0200 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2011-04-07 20:17:00 +0200 |
| commit | a12a7618a1f6f61a4c97ddf4cc422158c3fa72ba (patch) | |
| tree | 2b2e0e9991ddede152556f7954cd6e4c6121be97 /git/test/test_blob.py | |
| parent | e77d2d0ebb9487b696835f219e4a23a558462a55 (diff) | |
| download | GitPython-a12a7618a1f6f61a4c97ddf4cc422158c3fa72ba.tar.gz GitPython-a12a7618a1f6f61a4c97ddf4cc422158c3fa72ba.zip | |
Updated objects to use the ones defined in gitdb as basis. Only the submodule implementation is left in git-python as it requires some advanced features. No tests where run yet
Diffstat (limited to 'git/test/test_blob.py')
| -rw-r--r-- | git/test/test_blob.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/git/test/test_blob.py b/git/test/test_blob.py deleted file mode 100644 index 661c0501..00000000 --- a/git/test/test_blob.py +++ /dev/null @@ -1,23 +0,0 @@ -# test_blob.py -# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors -# -# 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 * -from git import * -from gitdb.util import hex_to_bin - -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) - - 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) - - def test_nodict(self): - self.failUnlessRaises(AttributeError, setattr, self.rorepo.tree()['AUTHORS'], 'someattr', 2) - |
