Rev 70: Implement GitBranchFormat.get_format_description. in http://people.samba.org/bzr/jelmer/bzr-git/trunk
Jelmer Vernooij
jelmer at samba.org
Sat Jul 26 17:27:45 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-git/trunk
------------------------------------------------------------
revno: 70
revision-id: jelmer at samba.org-20080726154845-9rhhan5gds05rf8k
parent: jelmer at samba.org-20080726154658-lvf11lq3l83v0nt5
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2008-07-26 17:48:45 +0200
message:
Implement GitBranchFormat.get_format_description.
modified:
git_branch.py git_branch.py-20071108230535-su8dxk529f4uk9fx-2
tests/test_git_branch.py test_git_branch.py-20071108234408-ygidvy5hviixghsd-3
=== modified file 'git_branch.py'
--- a/git_branch.py 2008-07-26 15:41:07 +0000
+++ b/git_branch.py 2008-07-26 15:48:45 +0000
@@ -41,7 +41,7 @@
class GitBranchFormat(branch.BranchFormat):
- def get_branch_description(self):
+ def get_format_description(self):
return 'Git Branch'
=== modified file 'tests/test_git_branch.py'
--- a/tests/test_git_branch.py 2008-07-26 15:41:07 +0000
+++ b/tests/test_git_branch.py 2008-07-26 15:48:45 +0000
@@ -84,3 +84,13 @@
def test_get_stacked_on_url(self):
self.assertIs(None, self.git_branch.get_stacked_on_url())
+
+
+class TestGitBranchFormat(tests.TestCase):
+
+ def setUp(self):
+ super(TestGitBranchFormat, self).setUp()
+ self.format = git_branch.GitBranchFormat()
+
+ def test_get_format_description(self):
+ self.assertEquals("Git Branch", self.format.get_format_description())
More information about the bazaar-commits
mailing list