]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
rename to do_create_magic_folder for tests
authorDavid Stainton <dstainton415@gmail.com>
Wed, 15 Jul 2015 22:23:09 +0000 (15:23 -0700)
committerDaira Hopwood <daira@jacaranda.org>
Wed, 30 Sep 2015 15:45:24 +0000 (16:45 +0100)
src/allmydata/test/test_cli_magic_folder.py

index d5b4839a7a44820374c1c4dd0a495903b55a69ff..64fb92272cac5b615be0cff2d8ac7b105de9b036 100644 (file)
@@ -16,7 +16,7 @@ from allmydata import uri
 
 class MagicFolderCLITestMixin(CLITestMixin, GridTestMixin):
 
-    def create_magic_folder(self, client_num):
+    def do_create_magic_folder(self, client_num):
         d = self.do_cli("magic-folder", "create", "magic:", client_num=client_num)
         def _done((rc,stdout,stderr)):
             self.failUnless(rc == 0)
@@ -116,7 +116,7 @@ class MagicFolderCLITestMixin(CLITestMixin, GridTestMixin):
         self.mkdir_nonascii(bob_dir)
         bob_magic_dir = abspath_expanduser_unicode(u"Bob-magic", base=self.basedir)
         self.mkdir_nonascii(bob_magic_dir)
-        d = self.create_magic_folder(0)
+        d = self.do_create_magic_folder(0)
         d.addCallback(lambda x: self.invite(0, u"Alice"))
         def get_invitecode(result):
             self.invitecode = result[1].strip()
@@ -157,7 +157,7 @@ class CreateMagicFolder(MagicFolderCLITestMixin, unittest.TestCase):
         self.basedir = "cli/MagicFolder/create-and-then-invite-join"
         self.set_up_grid()
         self.local_dir = os.path.join(self.basedir, "magic")
-        d = self.create_magic_folder(0)
+        d = self.do_create_magic_folder(0)
         d.addCallback(lambda x: self.invite(0, u"Alice"))
         def get_invite((rc,stdout,stderr)):
             self.invite_code = stdout.strip()