[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [ooni-probe/master] Add a very simple test that *must* always pass.



commit 4433cadaa39dd84b922329c84a7e791d81cac7c6
Author: Arturo Filastò <arturo@xxxxxxxxxxx>
Date:   Tue Oct 23 18:09:57 2012 +0000

    Add a very simple test that *must* always pass.
    * Useful for testing the newstyle API
---
 nettests/simpletest.py |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/nettests/simpletest.py b/nettests/simpletest.py
new file mode 100644
index 0000000..7cc9318
--- /dev/null
+++ b/nettests/simpletest.py
@@ -0,0 +1,19 @@
+from ooni import nettest
+class SimpleTest(nettest.TestCase):
+    inputs = range(1,100)
+    optParameters = [['asset', 'a', None, 'Asset file'],
+                     ['controlserver', 'c', 'google.com', 'Specify the control server'],
+                     ['resume', 'r', 0, 'Resume at this index'],
+                     ['other', 'o', None, 'Other arguments']]
+
+    def test_foo(self, *arg, **kw):
+        print "Running %s with %s" % ("test_foo", self.input)
+        self.report['test_foo'] = 'Antani'
+        self.report['shared'] = "sblinda"
+        self.assertEqual(1,1)
+
+    def test_f4oo(self, *arg, **kw):
+        print "Running %s with %s" % ("test_f4oo", self.input)
+        self.report['test_f4oo'] = 'Antani'
+        self.report['shared'] = "sblinda2"
+        self.assertEqual(1,1)



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits