[tor-commits] [ooni-probe/master] Fix director unittest
art at torproject.org
art at torproject.org
Wed Jun 19 12:32:45 UTC 2013
commit 1ac4e4fd8f13b8e358034d3b69174fdc19b02543
Author: Arturo Filastò <art at fuffa.org>
Date: Wed Feb 27 17:11:22 2013 +0100
Fix director unittest
---
tests/test_director.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/tests/test_director.py b/tests/test_director.py
index 484cb21..a9dfbe8 100644
--- a/tests/test_director.py
+++ b/tests/test_director.py
@@ -42,9 +42,11 @@ class TestDirector(unittest.TestCase):
pass
def test_start_net_test(self):
- net_test_loader = NetTestLoader(net_test_string, dummyArgs)
- net_test_loader.checkOptions()
- d = self.director.startNetTest('', net_test_loader, self.reporters)
+ ntl = NetTestLoader(dummyArgs)
+ ntl.loadNetTestString(net_test_string)
+
+ ntl.checkOptions()
+ d = self.director.startNetTest('', ntl, self.reporters)
@d.addCallback
def done(result):
More information about the tor-commits
mailing list