diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-05-10 10:21:26 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-05-10 10:21:26 +0200 |
commit | cd26aaebbda94dc3740e41bbd3f91ba6b1a25c10 (patch) | |
tree | 7ea33a01a8a33b3cea92e0f6872bb1c7b5279a5e /git/test/test_base.py | |
parent | 7ae36c3e019a5cc16924d1b6007774bfb625036f (diff) | |
download | gitpython-cd26aaebbda94dc3740e41bbd3f91ba6b1a25c10.tar.gz |
Made repository paths methods a property to be compatible with the existing repo interface. Added submodule interface ... goal is to provide all of the extra repo functionality in custom interfaces
Diffstat (limited to 'git/test/test_base.py')
-rw-r--r-- | git/test/test_base.py | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/git/test/test_base.py b/git/test/test_base.py index ca812ed4..7488ac6b 100644 --- a/git/test/test_base.py +++ b/git/test/test_base.py @@ -12,10 +12,15 @@ from lib import ( ) import git.objects.base as base +from git.objects import ( + Blob, + Tree, + Commit, + TagObject + ) import git.refs as refs -import os -from git import * + from itertools import chain from git.objects.util import get_object_type_by_name from git.util import hex_to_bin @@ -23,14 +28,22 @@ import tempfile ################## -from git import * from git.util import ( NULL_BIN_SHA ) -from git.typ import ( - str_blob_type - ) +from git.typ import str_blob_type +from git.base import ( + OInfo, + OPackInfo, + ODeltaPackInfo, + OStream, + OPackStream, + ODeltaPackStream, + IStream, + ) + +import os class TestBase(TestBase): @@ -94,7 +107,7 @@ class TestBase(TestBase): assert base.Object in get_object_type_by_name(tname).mro() # END for each known type - assert_raises( ValueError, get_object_type_by_name, "doesntexist" ) + self.failUnlessRaises(ValueError, get_object_type_by_name, "doesntexist") def test_object_resolution(self): # objects must be resolved to shas so they compare equal |