diff options
Diffstat (limited to 'git/test/db')
-rw-r--r-- | git/test/db/base.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/git/test/db/base.py b/git/test/db/base.py index 2f8f50e2..0f5eebe4 100644 --- a/git/test/db/base.py +++ b/git/test/db/base.py @@ -283,6 +283,15 @@ class RepoBase(TestDBBase): assert_true( isinstance( tlist[0], basestring ) ) assert_true( len( tlist ) < sum( len(t) for t in tlist ) ) # test for single-char bug + def test_blame_real(self): + c = 0 + for item in self.rorepo.head.commit.tree.traverse( + predicate=lambda i, d: i.type == 'blob' and i.path.endswith('.py')): + c += 1 + b = self.rorepo.blame(self.rorepo.head, item.path) + #END for each item to traverse + assert c + def test_untracked_files(self): base = self.rorepo.working_tree_dir files = ( join_path_native(base, "__test_myfile"), |