mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 05:28:04 +00:00
Teach join twice test to test for proper stdout and stderr values
This commit is contained in:
parent
74ad656e39
commit
3074b687be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user