[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [nyx/master] Correct tests with new '--interface :80' behavior



commit 74e4a518a432bae4f4f81ce599e7a115bcec9521
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date:   Thu Jan 3 14:02:15 2019 -0800

    Correct tests with new '--interface :80' behavior
    
    Oops, commit 5453231 changed our argument parsing behavior in a way that broke
    our tests.
---
 test/arguments.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/arguments.py b/test/arguments.py
index 5223af5..e9d6665 100644
--- a/test/arguments.py
+++ b/test/arguments.py
@@ -21,6 +21,9 @@ class TestArgumentParsing(unittest.TestCase):
     args = parse(['--interface', '80'])
     self.assertEqual((DEFAULT_ARGS['control_port'][0], 80), args.control_port)
 
+    args = parse(['--interface', ':80'])
+    self.assertEqual((DEFAULT_ARGS['control_port'][0], 80), args.control_port)
+
     args = parse(['--socket', '/tmp/my_socket', '--config', '/tmp/my_config'])
     self.assertEqual('/tmp/my_socket', args.control_socket)
     self.assertEqual('/tmp/my_config', args.config)
@@ -72,7 +75,6 @@ class TestArgumentParsing(unittest.TestCase):
       'blarg',
       '127.0.0.1',
       '127.0.0.1:',
-      ':80',
       '400.0.0.1:80',
       '127.0.0.1:-5',
       '127.0.0.1:500000',

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits