diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-10-26 10:46:42 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-10-26 18:43:39 +0200 |
commit | 58ddd05147316531199b4622e122adb245c8d4bb (patch) | |
tree | d703f0f4b3c07cd632663c5ab02d7e6606590b5b /tests | |
parent | 6849a77d80dba5b1d512bdd246c460c56c426c19 (diff) |
GitRrepository: add get_tags()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_GitRepository.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index fd247dc6..2202e5cb 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -126,6 +126,7 @@ def test_tag(): Methods tested: - L{gbp.git.GitRepository.create_tag} - L{gbp.git.GitRepository.has_tag} + - L{gbp.git.GitRepository.get_tags} >>> import gbp.git >>> repo = gbp.git.GitRepository(repo_dir) @@ -137,6 +138,10 @@ def test_tag(): >>> repo.create_tag("tag2", msg="foo") >>> repo.has_tag("tag2") True + >>> repo.get_tags() + ['tag', 'tag2'] + >>> repo.tags + ['tag', 'tag2'] """ |