]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Make alice bob test use non-ascii chars in nicknames
authorDavid Stainton <dstainton415@gmail.com>
Wed, 15 Jul 2015 22:37:40 +0000 (15:37 -0700)
committerDaira Hopwood <daira@jacaranda.org>
Tue, 15 Sep 2015 16:56:03 +0000 (17:56 +0100)
src/allmydata/test/test_cli_magic_folder.py

index 5ffe3dfdc76d15fd9860cad726a02fddc179967b..6199a3c30c4c2e503cd2c9a822d5a595ab40d724 100644 (file)
@@ -108,11 +108,11 @@ class MagicFolderCLITestMixin(CLITestMixin, GridTestMixin):
 
     def setup_alice_and_bob(self):
         self.set_up_grid(num_clients=2)
-        alice_dir = abspath_expanduser_unicode(u"Alice", base=self.basedir)
+        alice_dir = abspath_expanduser_unicode(u"Alice\u00F8", base=self.basedir)
         self.mkdir_nonascii(alice_dir)
         alice_magic_dir = abspath_expanduser_unicode(u"Alice-magic", base=self.basedir)
         self.mkdir_nonascii(alice_magic_dir)
-        bob_dir = abspath_expanduser_unicode(u"Bob", base=self.basedir)
+        bob_dir = abspath_expanduser_unicode(u"Bob\u00F8", base=self.basedir)
         self.mkdir_nonascii(bob_dir)
         bob_magic_dir = abspath_expanduser_unicode(u"Bob-magic", base=self.basedir)
         self.mkdir_nonascii(bob_magic_dir)
@@ -120,7 +120,7 @@ class MagicFolderCLITestMixin(CLITestMixin, GridTestMixin):
         # 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"))
+        d.addCallback(lambda x: self.do_invite(0, u"Alice\u00F8"))
         def get_invitecode(result):
             self.invitecode = result[1].strip()
         d.addCallback(get_invitecode)
@@ -136,7 +136,7 @@ class MagicFolderCLITestMixin(CLITestMixin, GridTestMixin):
         d.addCallback(get_Alice_magicfolder)
 
         # Alice invites Bob. Bob joins.
-        d.addCallback(lambda x: self.do_invite(0, u"Bob"))
+        d.addCallback(lambda x: self.do_invite(0, u"Bob\u00F8"))
         def get_invitecode(result):
             self.invitecode = result[1].strip()
         d.addCallback(get_invitecode)