summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitRepository.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py
index 427370d..c5c5849 100644
--- a/tests/test_GitRepository.py
+++ b/tests/test_GitRepository.py
@@ -493,6 +493,19 @@ def test_diff():
True
"""
+def test_diff_status():
+ """
+ Methods tested:
+ - L{gbp.git.GitRepository.diff_status}
+
+ >>> import gbp.git
+ >>> repo = gbp.git.GitRepository(repo_dir)
+ >>> repo.diff_status("HEAD", "HEAD")
+ defaultdict(<type 'list'>, {})
+ >>> repo.diff_status("HEAD~1", "HEAD")
+ defaultdict(<type 'list'>, {'M': ['testfile']})
+ """
+
def test_mirror_clone():
"""
Mirror a repository