mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 15:16:41 +00:00
Faking sys.stdout doesn't go well since we lookup encoding attribute.
This commit is contained in:
parent
eddd9550f0
commit
8be4acd7ec
@ -130,9 +130,10 @@ class Integration(GridTestMixin, CLITestMixin, unittest.TestCase):
|
|||||||
d.addCallback(_check)
|
d.addCallback(_check)
|
||||||
return d
|
return d
|
||||||
|
|
||||||
@mock.patch('sys.stdout')
|
@defer.inlineCallbacks
|
||||||
def test_help(self, fake):
|
def test_help(self):
|
||||||
return self.do_cli('status', '--help')
|
rc, _, _ = yield self.do_cli('status', '--help')
|
||||||
|
self.assertEqual(rc, 0)
|
||||||
|
|
||||||
|
|
||||||
class CommandStatus(unittest.TestCase):
|
class CommandStatus(unittest.TestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user