diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-12-30 16:17:28 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-12-30 16:17:28 +0100 |
commit | d86e77edd500f09e3e19017c974b525643fbd539 (patch) | |
tree | e2c4bbdb4aff635b9480109d7dcef17a63c050b3 /test/git/test_tree.py | |
parent | 1b3feddd1269a0b0976f4eef2093cb0dbf258f99 (diff) | |
download | gitpython-d86e77edd500f09e3e19017c974b525643fbd539.tar.gz |
tree: implemented recursive paths in __div__ and __getitem__ method, allowing the keys to contain slashes; adjusted test to check for this
Diffstat (limited to 'test/git/test_tree.py')
-rw-r--r-- | test/git/test_tree.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/git/test_tree.py b/test/git/test_tree.py index 0bb9647f..54a3352b 100644 --- a/test/git/test_tree.py +++ b/test/git/test_tree.py @@ -54,7 +54,10 @@ class TestTree(TestCase): assert os.path.isabs(item.abspath) if '/' in item.path: found_slash = True - break + # END check for slash + + # slashes in paths are supported as well + assert root[item.path] == item == root/item.path # END for each item assert found_slash |