[tor-commits] [stem/master] Test that 'tor --quiet' suppresses stdout

atagar at torproject.org atagar at torproject.org
Mon Feb 9 04:30:53 UTC 2015


commit c155a8cc80098ff0632055f41248cdac8f699e9e
Author: Damian Johnson <atagar at 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.





More information about the tor-commits mailing list