From 9f56aadf3c7e8404b38ba071e54859ce62521ec5 Mon Sep 17 00:00:00 2001
From: David Stainton <dstainton415@gmail.com>
Date: Wed, 9 Dec 2015 13:12:33 +0200
Subject: [PATCH] Teach join twice test to test for proper stdout and stderr
 values

---
 src/allmydata/test/test_cli_magic_folder.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/allmydata/test/test_cli_magic_folder.py b/src/allmydata/test/test_cli_magic_folder.py
index eb171c0c..58ef6deb 100644
--- a/src/allmydata/test/test_cli_magic_folder.py
+++ b/src/allmydata/test/test_cli_magic_folder.py
@@ -276,6 +276,11 @@ class CreateMagicFolder(MagicFolderCLITestMixin, unittest.TestCase):
         d.addCallback(join_again)
         def get_results(result):
             code = result[0]
+            stdout = result[1]
+            stderr = result[2]
+            self.failUnlessEqual(stdout, "")
+            self.failUnlessEqual(stderr, "\nThis client has already joined a magic folder."
+                                 "\nUse the 'tahoe magic-folder leave' command first.\n\n")
             self.failIfEqual(code, 0)
         d.addCallback(get_results)
         return d
-- 
2.45.2