From: David Stainton Date: Wed, 9 Dec 2015 11:12:33 +0000 (+0200) Subject: Teach join twice test to test for proper stdout and stderr values X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=d0e410f77320b1fc162f445da2156b59fec288f4;p=tahoe-lafs%2Ftahoe-lafs.git Teach join twice test to test for proper stdout and stderr values --- 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