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

atagar at torproject.org atagar at torproject.org
Fri Sep 14 15:31:39 UTC 2012


commit 56a06b6283d5bcd3c5eb6d6c85b98b2949858cf9
Author: Ramkumar Ramachandra <artagnon at gmail.com>
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 at gmail.com>
---
 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)



More information about the tor-commits mailing list