Rev 504: Add blackbox tests for "bzr ls" and "bzr info" in file:///data/jelmer/bzr-svn/0.4/

Jelmer Vernooij jelmer at samba.org
Thu Jul 12 09:28:31 BST 2007


At file:///data/jelmer/bzr-svn/0.4/

------------------------------------------------------------
revno: 504
revision-id: jelmer at samba.org-20070703003000-3js37ggc5tuv00ll
parent: jelmer at samba.org-20070702220913-jyqdbylhwszzlujy
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: main
timestamp: Tue 2007-07-03 02:30:00 +0200
message:
  Add blackbox tests for "bzr ls" and "bzr info"
modified:
  tests/test_blackbox.py         test_blackbox.py-20070325150839-d10llf8arptpcfl6-1
=== modified file 'tests/test_blackbox.py'
--- a/tests/test_blackbox.py	2007-07-02 22:09:13 +0000
+++ b/tests/test_blackbox.py	2007-07-03 00:30:00 +0000
@@ -195,3 +195,20 @@
         self.assertNotEqual(inv1.path2id("y"), inv2.path2id("y"))
 
 
+    def test_list(self):
+        repos_url = self.make_client("a", "dc")
+        self.build_tree({'dc/foo': "test", 'dc/bla': "ha"})
+        self.client_add("dc/foo")
+        self.client_add("dc/bla")
+        self.client_commit("dc", "Msg")
+        self.assertEquals(('a/bla\na/foo\n', ''), 
+              self.runbzr(['ls', "a"]))
+
+    def test_info_remote(self):
+        repos_url = self.make_client("a", "dc")
+        self.build_tree({'dc/foo': "test", 'dc/bla': "ha"})
+        self.client_add("dc/foo")
+        self.client_add("dc/bla")
+        self.client_commit("dc", "Msg")
+        self.assertEquals(
+              "Repository branch (format: unnamed)\nLocation:\n  shared repository: %s/\n  repository branch: .\n" % repos_url, self.runbzr(['info', "a"])[0])




More information about the bazaar-commits mailing list