summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-12 23:18:43 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-12 23:18:43 +0200
commita58a60ac5f322eb4bfd38741469ff21b5a33d2d5 (patch)
tree0f47c2f2844c7e1d26925a7a9f4016eb8d961b0d /test/git/test_repo.py
parentff3d142387e1f38b0ed390333ea99e2e23d96e35 (diff)
downloadgitpython-a58a60ac5f322eb4bfd38741469ff21b5a33d2d5.tar.gz
tree: now behaves like a list with string indexing functionality - using a dict as cache is a problem as the tree is ordered, added blobs, trees and traverse method
repo: remove blob function as blobs are created directly or iterated - primitve types should not clutter the repo interface
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r--test/git/test_repo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index e999ffe8..7f87f78b 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -93,8 +93,8 @@ class TestRepo(object):
tree = self.repo.tree(Head(self.repo, 'master'))
- assert_equal(4, len([c for c in tree.values() if isinstance(c, Blob)]))
- assert_equal(3, len([c for c in tree.values() if isinstance(c, Tree)]))
+ assert_equal(4, len([c for c in tree if isinstance(c, Blob)]))
+ assert_equal(3, len([c for c in tree if isinstance(c, Tree)]))
assert_true(git.called)
@@ -102,7 +102,7 @@ class TestRepo(object):
def test_blob(self, git):
git.return_value = fixture('cat_file_blob')
- blob = self.repo.blob("abc")
+ blob = Blob(self.repo,"abc")
assert_equal("Hello world", blob.data)
assert_true(git.called)