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

[tor-commits] [stem/master] test/unit: correct a typo in rule.py



commit 56a06b6283d5bcd3c5eb6d6c85b98b2949858cf9
Author: Ramkumar Ramachandra <artagnon@xxxxxxxxx>
Date:   Thu Sep 13 12:27:52 2012 -0700

    test/unit: correct a typo in rule.py
    
    A tuple was being initialized as a dictionary.  Correct this.
    
    Signed-off-by: Ramkumar Ramachandra <artagnon@xxxxxxxxx>
---
 test/unit/exit_policy/rule.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/unit/exit_policy/rule.py b/test/unit/exit_policy/rule.py
index baebf96..55e0c76 100644
--- a/test/unit/exit_policy/rule.py
+++ b/test/unit/exit_policy/rule.py
@@ -128,7 +128,7 @@ class TestExitPolicyRule(unittest.TestCase):
       self.assertEquals(masked_bits, rule.masked_bits)
   
   def test_invalid_ipv4_addresses(self):
-    test_inputs = {
+    test_inputs = (
       "256.0.0.0",
       "-1.0.0.0",
       "0.0.0",
@@ -136,7 +136,7 @@ class TestExitPolicyRule(unittest.TestCase):
       "0.0.0.a",
       "127.0.0.1/-1",
       "127.0.0.1/33",
-    }
+    )
     
     for rule_addr in test_inputs:
       self.assertRaises(ValueError, ExitPolicyRule, "accept %s:*" % rule_addr)

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