]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
add comments and blank lines to make setup_alice_and_bob more readable
authorDavid Stainton <dstainton415@gmail.com>
Wed, 15 Jul 2015 22:33:33 +0000 (15:33 -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 0c4a991d19b0f7170de8f97840c26078abb116ca..5ffe3dfdc76d15fd9860cad726a02fddc179967b 100644 (file)
@@ -116,6 +116,9 @@ 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)
+
+        # Alice creates a Magic Folder,
+        # invites herself then and joins.
         d = self.do_create_magic_folder(0)
         d.addCallback(lambda x: self.do_invite(0, u"Alice"))
         def get_invitecode(result):
@@ -131,6 +134,8 @@ class MagicFolderCLITestMixin(CLITestMixin, GridTestMixin):
             self.alice_magicfolder = self.init_magicfolder(0, self.alice_upload_dircap, self.alice_collective_dircap, alice_magic_dir)
             return result
         d.addCallback(get_Alice_magicfolder)
+
+        # Alice invites Bob. Bob joins.
         d.addCallback(lambda x: self.do_invite(0, u"Bob"))
         def get_invitecode(result):
             self.invitecode = result[1].strip()
@@ -145,6 +150,7 @@ class MagicFolderCLITestMixin(CLITestMixin, GridTestMixin):
             self.bob_magicfolder = self.init_magicfolder(1, self.bob_upload_dircap, self.bob_collective_dircap, bob_magic_dir)
             return result
         d.addCallback(get_Bob_magicfolder)
+
         def prepare_result(result):
             return self.alice_collective_dircap, self.alice_upload_dircap, self.alice_magicfolder, self.bob_collective_dircap, self.bob_upload_dircap, self.bob_magicfolder
         d.addCallback(prepare_result)