From 27042f7061806161df2e986696f7ab13d09a8404 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Fri, 20 Nov 2009 17:17:47 -0800 Subject: [PATCH] test: Add a testcase for gitcmds.untracked_files() Signed-off-by: David Aguilar --- test/test_cola_gitcmds.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_cola_gitcmds.py b/test/test_cola_gitcmds.py index a9f3158d..7d8a723f 100644 --- a/test/test_cola_gitcmds.py +++ b/test/test_cola_gitcmds.py @@ -49,6 +49,11 @@ class GitCmdsTestCase(helper.GitRepositoryTestCase): """) self.assertEqual(gitcmds.tracked_branch('other'), 'test/other/branch') + def test_untracked_files(self): + """Test untracked_files().""" + self.shell('touch C D E') + self.assertEqual(gitcmds.untracked_files(), ['C', 'D', 'E']) + if __name__ == '__main__': unittest.main() -- 2.11.4.GIT