Rev 68: Add blackbox test for info. in http://people.samba.org/bzr/jelmer/bzr-git/trunk

Jelmer Vernooij jelmer at samba.org
Sat Jul 26 17:27:43 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-git/trunk

------------------------------------------------------------
revno: 68
revision-id: jelmer at samba.org-20080726154411-2ddaucz0edsws939
parent: jelmer at samba.org-20080726154107-hbyntvzp13k7j88k
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: trunk
timestamp: Sat 2008-07-26 17:44:11 +0200
message:
  Add blackbox test for info.
modified:
  tests/test_blackbox.py         test_blackbox.py-20071228193717-18el6d8x4qddug3w-1
=== modified file 'tests/test_blackbox.py'
--- a/tests/test_blackbox.py	2007-12-28 20:15:51 +0000
+++ b/tests/test_blackbox.py	2008-07-26 15:44:11 +0000
@@ -26,6 +26,18 @@
 
 class TestGitBlackBox(ExternalBase):
 
+    def test_info(self):
+        # Create a git repository with a revision.
+        tests.run_git('init')
+        builder = tests.GitBranchBuilder()
+        builder.set_file('a', 'text for a\n', False)
+        builder.commit('Joe Foo <joe at foo.com>', u'<The commit message>')
+        builder.finish()
+
+        output, error = self.run_bzr(['info'])
+        self.assertEqual(error, '')
+        self.assertTrue("Repository branch (format: git)" in output)
+
     def test_log(self):
         # Smoke test for "bzr log" in a git repository.
 




More information about the bazaar-commits mailing list