summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
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)