[tor-commits] [ooni-probe/master] * Renaming TestCase to NetTestCase to avoid namespace confusion.

isis at torproject.org isis at torproject.org
Sun Nov 4 13:50:41 UTC 2012


commit a102a8309dbe287e5d20d3c605d7a2b3743f5da0
Author: Isis Lovecruft <isis at torproject.org>
Date:   Sun Nov 4 04:09:00 2012 +0000

    * Renaming TestCase to NetTestCase to avoid namespace confusion.
---
 ooni/runner.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ooni/runner.py b/ooni/runner.py
index cf3a7ee..a7973dc 100644
--- a/ooni/runner.py
+++ b/ooni/runner.py
@@ -18,7 +18,7 @@ from twisted.trial.runner import isTestCase
 from twisted.trial.runner import filenameToModule
 
 from ooni.inputunit import InputUnitFactory
-from ooni.nettest import InputTestSuite, TestCase
+from ooni.nettest import InputTestSuite, NetTestCase
 from ooni.plugoo import tests as oonitests
 from ooni.reporter import ReporterFactory
 from ooni.utils import log, date
@@ -121,7 +121,7 @@ def processTestOptions(cls, config):
     :class:`ooni.nettest.Nettest`.
 
     :param cls:
-        An subclass of :class:`ooni.nettest.TestCase`.
+        An subclass of :class:`ooni.nettest.NetTestCase`.
     :param config:
         A configured and instantiated :class:`twisted.python.usage.Options`
         class.
@@ -201,7 +201,7 @@ def loadTestsAndOptions(classes, config):
                     options.append([])
                     log.err(ae)
 
-        elif issubclass(klass, TestCase):
+        elif issubclass(klass, NetTestCase):
             try:
                 cases, opts = processNetTest(klass, config, method_prefix)
             except Exception, e:





More information about the tor-commits mailing list