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/%5B/%5D%20/frontends/quickstart.html?a=commitdiff_plain;h=3c47d97c9989a0979bb7d50d472098d89ee2d05a;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