Rev 1305: Remove unused tests helper functions. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4

Jelmer Vernooij jelmer at samba.org
Mon Jun 23 03:42:44 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/0.4

------------------------------------------------------------
revno: 1305
revision-id: jelmer at samba.org-20080623024242-3z8y4mzt439rog6s
parent: jelmer at samba.org-20080623024047-ck4qf3oakncf378f
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Mon 2008-06-23 04:42:42 +0200
message:
  Remove unused tests helper functions.
modified:
  tests/__init__.py              __init__.py-20060508151940-e9f4d914801a2535
  tests/test_checkout.py         test_checkout.py-20070101154110-eevkc29qj0q7udz5-1
=== modified file 'tests/__init__.py'
--- a/tests/__init__.py	2008-06-23 02:40:47 +0000
+++ b/tests/__init__.py	2008-06-23 02:42:42 +0000
@@ -155,26 +155,14 @@
 
         return local_path_to_url(abspath)
 
-    def make_remote_bzrdir(self, relpath):
-        """Create a repository."""
-
-        repos_url = self.make_repository(relpath)
-
-        return BzrDir.open("svn+%s" % repos_url)
-
-    def open_local_bzrdir(self, repos_url, relpath):
-        """Open a local BzrDir."""
-
-        self.make_checkout(repos_url, relpath)
-
-        return BzrDir.open(relpath)
-
     def make_local_bzrdir(self, repos_path, relpath):
         """Create a repository and checkout."""
 
         repos_url = self.make_repository(repos_path)
 
-        return self.open_local_bzrdir(repos_url, relpath)
+        self.make_checkout(repos_url, relpath)
+
+        return BzrDir.open(relpath)
 
     def make_checkout(self, repos_url, relpath):
         self.client_ctx.checkout(repos_url, relpath, "HEAD") 
@@ -192,10 +180,6 @@
     def open_checkout_bzrdir(url):
         return BzrDir.open(url)
 
-    @staticmethod
-    def create_branch_convenience(url):
-        return BzrDir.create_branch_convenience(url)
-
     def client_set_prop(self, path, name, value):
         if value is None:
             value = ""

=== modified file 'tests/test_checkout.py'
--- a/tests/test_checkout.py	2008-06-23 02:40:47 +0000
+++ b/tests/test_checkout.py	2008-06-23 02:42:42 +0000
@@ -58,7 +58,7 @@
 class TestCheckout(TestCaseWithSubversionRepository):
     def test_not_for_writing(self):
         self.make_client("d", "dc")
-        x = self.create_branch_convenience("dc/foo")
+        x = BzrDir.create_branch_convenience("dc/foo")
         self.assertFalse(hasattr(x.repository, "uuid"))
 
     def test_open_repository(self):




More information about the bazaar-commits mailing list