'If ``logging`` is set to ``False``, ``FlockerScriptRunner.main``
does not log to ``sys.stdout``.'

def test_disabled_logging(self):

    class Script(object, ):
        def main(self, reactor, arguments):
            twisted_log.msg('hello!')
            return succeed(None)
    script = Script()
    sys = FakeSysModule(argv=[])
    from twisted.test.test_task import _FakeReactor
    fakeReactor = _FakeReactor()
    runner = FlockerScriptRunner(script, usage.Options(), reactor=fakeReactor, sys_module=sys, logging=False)
    self.assertRaises(SystemExit, runner.main)
    self.assertEqual(sys.stdout.getvalue(), '')
