commit 1ac4e4fd8f13b8e358034d3b69174fdc19b02543 Author: Arturo Filastò art@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):
tor-commits@lists.torproject.org