aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-01-12 15:22:51 +0200
committerGuido Günther <agx@sigxcpu.org>2012-01-15 19:50:24 +0100
commit16a2cd36e60a9241aeff01e923c0b77f7913ce7c (patch)
tree3418f6a27bac3a4032855d6b1ed98ea659194da3 /tests
parenteb618608ceb061b4a06e6eceb6c589a7b6340822 (diff)
GitRepository: add rename_branch() method
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitRepository.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py
index 23f4f997..ada3a016 100644
--- a/tests/test_GitRepository.py
+++ b/tests/test_GitRepository.py
@@ -158,6 +158,23 @@ def test_set_branch():
"""
+def test_rename_branch():
+ """
+ Create branch named I{baz}, rename it to I{bax} and finally delete it
+
+ Methods tested:
+ - L{gbp.git.GitRepository.create_branch}
+ - L{gbp.git.GitRepository.rename_branch}
+ - L{gbp.git.GitRepository.delete_branch}
+
+ >>> import gbp.git
+ >>> repo = gbp.git.GitRepository(repo_dir)
+ >>> repo.create_branch("baz")
+ >>> repo.rename_branch("baz", "bax")
+ >>> repo.delete_branch("bax")
+ """
+
+
def test_tag():
"""
Create a tag named I{tag} and check it's existance