aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/git/test_repo.py4
-rw-r--r--test/git/test_tree.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index 7550e1d6..c7a4c01b 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -96,8 +96,8 @@ class TestRepo(object):
tree = self.repo.tree('master')
- assert_equal(4, len([c for c in tree.contents if isinstance(c, Blob)]))
- assert_equal(3, len([c for c in tree.contents if isinstance(c, Tree)]))
+ assert_equal(4, len([c for c in tree.contents.values() if isinstance(c, Blob)]))
+ assert_equal(3, len([c for c in tree.contents.values() if isinstance(c, Tree)]))
assert_true(git.called)
assert_equal(git.call_args, (('ls_tree', 'master'), {}))
diff --git a/test/git/test_tree.py b/test/git/test_tree.py
index 957b8962..d66764b3 100644
--- a/test/git/test_tree.py
+++ b/test/git/test_tree.py
@@ -18,7 +18,7 @@ class TestTree(object):
tree = self.repo.tree('master')
- child = tree.contents[-1]
+ child = tree.contents['grit']
child.contents
child.contents