[tor-commits] [ooni-probe/master] Update Unit Tests

art at torproject.org art at torproject.org
Tue Aug 27 09:21:51 UTC 2013


commit 6f5493dd7b6bd99d34eddb66ad7ae632edfd775d
Author: aagbsn <aagbsn at extc.org>
Date:   Fri Aug 16 22:53:12 2013 +0200

    Update Unit Tests
    
    Adds a call to the initializeInputProcessor method
---
 ooni/tests/test_nettest.py |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/ooni/tests/test_nettest.py b/ooni/tests/test_nettest.py
index eb909d9..718ad89 100644
--- a/ooni/tests/test_nettest.py
+++ b/ooni/tests/test_nettest.py
@@ -189,6 +189,8 @@ class TestNetTest(unittest.TestCase):
         ntl.loadNetTestString(net_test_string_with_file)
 
         ntl.checkOptions()
+        nt = NetTest(ntl,None)
+        nt.initializeInputProcessor()
 
         # XXX: if you use the same test_class twice you will have consumed all
         # of its inputs!
@@ -214,6 +216,7 @@ class TestNetTest(unittest.TestCase):
         ntl.checkOptions()
         net_test = NetTest(ntl, None)
 
+        net_test.initializeInputProcessor()
         measurements = list(net_test.generateMeasurements())
         self.assertEqual(len(measurements), 20)
 





More information about the tor-commits mailing list