commit c155a8cc80098ff0632055f41248cdac8f699e9e Author: Damian Johnson <ata...@torproject.org> Date: Mon Feb 2 09:22:31 2015 -0800
Test that 'tor --quiet' suppresses stdout Simple port of test_cmdline_args.py's test_quiet(). --- test/integ/process.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/integ/process.py b/test/integ/process.py index 88ad8ca..c449db3 100644 --- a/test/integ/process.py +++ b/test/integ/process.py @@ -37,6 +37,13 @@ class TestProcess(unittest.TestCase): with test.runner.get_runner().get_tor_controller() as controller: self.assertEqual('Tor version %s.\n' % controller.get_version(), self.run_tor('--version')) + def test_quiet_argument(self): + """ + Check that we don't provide anything on stdout when running 'tor --quiet'. + """ + + self.assertEqual('', self.run_tor('--quiet', '--invalid_argument', expect_failure = True)) + def test_launch_tor_with_config(self): """ Exercises launch_tor_with_config. _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits