summaryrefslogtreecommitdiff
path: root/test/git/test_tree.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-11 22:22:28 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-11 22:22:28 +0200
commitb01824b1aecf8aadae4501e22feb45c20fb26bce (patch)
treed4bd7e5dc1f183938e95619de1b52944e23b9724 /test/git/test_tree.py
parent708b8dda8e7b87841a5f39c60b799c514e75a9c7 (diff)
downloadgitpython-b01824b1aecf8aadae4501e22feb45c20fb26bce.tar.gz
Fixed remaining tests to deal with the changes
mode is now generally an int compatible to the stat module
Diffstat (limited to 'test/git/test_tree.py')
-rw-r--r--test/git/test_tree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/git/test_tree.py b/test/git/test_tree.py
index 205fbf1a..50d34006 100644
--- a/test/git/test_tree.py
+++ b/test/git/test_tree.py
@@ -31,7 +31,7 @@ class TestTree(object):
assert_equal(Tree, tree.__class__)
assert_equal("650fa3f0c17f1edb4ae53d8dcca4ac59d86e6c44", tree.id)
- assert_equal("040000", tree.mode)
+ assert_equal(0,tree.mode) # git tree objects always use this mode
assert_equal("test", tree.path)
def test_content_from_string_tree_should_return_blob(self):
@@ -41,7 +41,7 @@ class TestTree(object):
assert_equal(Blob, tree.__class__)
assert_equal("aa94e396335d2957ca92606f909e53e7beaf3fbb", tree.id)
- assert_equal("100644", tree.mode)
+ assert_mode_644(tree.mode)
assert_equal("grit.rb", tree.path)
def test_content_from_string_tree_should_return_commit(self):