summaryrefslogtreecommitdiff
path: root/test/git/test_base.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-12 11:50:14 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-12 11:50:14 +0200
commitf2834177c0fdf6b1af659e460fd3348f468b8ab0 (patch)
tree2cb12187e664a026974383ed303cf307df2d4029 /test/git/test_base.py
parent3c0a65226f038c58fc6d6ed525f38fc00b3579b7 (diff)
downloadgitpython-f2834177c0fdf6b1af659e460fd3348f468b8ab0.tar.gz
Reorganized package structure and cleaned up imports
Diffstat (limited to 'test/git/test_base.py')
-rw-r--r--test/git/test_base.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/git/test_base.py b/test/git/test_base.py
index 8f522cec..a153eb83 100644
--- a/test/git/test_base.py
+++ b/test/git/test_base.py
@@ -7,8 +7,10 @@
import time
from test.testlib import *
from git import *
-import git.base as base
+import git.objects.base as base
+import git.refs as refs
from itertools import chain
+from git.objects.util import get_object_type_by_name
class TestBase(object):
@@ -60,7 +62,7 @@ class TestBase(object):
ref_count = 0
for ref in chain(self.repo.tags, self.repo.heads):
ref_count += 1
- assert isinstance(ref, base.Ref)
+ assert isinstance(ref, refs.Ref)
assert str(ref) == ref.name
assert repr(ref)
assert ref == ref
@@ -69,10 +71,10 @@ class TestBase(object):
# END for each ref
assert len(s) == ref_count
- def test_get_type_by_name(self):
+ def test_get_object_type_by_name(self):
for tname in base.Object.TYPES:
- assert base.Object in base.Object.get_type_by_name(tname).mro()
+ assert base.Object in get_object_type_by_name(tname).mro()
# END for each known type
- assert_raises( ValueError, base.Object.get_type_by_name, "doesntexist" )
+ assert_raises( ValueError, get_object_type_by_name, "doesntexist" )