From d86e77edd500f09e3e19017c974b525643fbd539 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 30 Dec 2009 16:17:28 +0100 Subject: tree: implemented recursive paths in __div__ and __getitem__ method, allowing the keys to contain slashes; adjusted test to check for this --- test/git/test_tree.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/git/test_tree.py') 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 -- cgit v1.2.1