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

[tor-commits] [ooni-probe/master] Re-enable test_utils.



commit 47003d9191709d9033ab2b1c3f6cef578e017b02
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Thu Jan 30 18:39:29 2014 +0100

    Re-enable test_utils.
---
 ooni/tests/disabled_test_utils.py |   21 ---------------------
 ooni/tests/test_utils.py          |   21 +++++++++++++++++++++
 2 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/ooni/tests/disabled_test_utils.py b/ooni/tests/disabled_test_utils.py
deleted file mode 100644
index cafb00f..0000000
--- a/ooni/tests/disabled_test_utils.py
+++ /dev/null
@@ -1,21 +0,0 @@
-import os
-import unittest
-from ooni.utils import pushFilenameStack
-basefilename = os.path.abspath('dummyfile')
-class TestUtils(unittest.TestCase):
-    def test_pushFilenameStack(self):
-        f = open(basefilename, "w+")
-        f.write("0\n")
-        f.close()
-        for i in xrange(1, 5):
-            f = open(basefilename+".%s" % i, "w+")
-            f.write("%s\n" % i)
-            f.close()
-
-        pushFilenameStack(basefilename)
-        for i in xrange(1, 5):
-            f = open(basefilename+".%s" % i)
-            c = f.readlines()[0].strip()
-            self.assertEqual(str(i-1), str(c))
-            f.close()
-
diff --git a/ooni/tests/test_utils.py b/ooni/tests/test_utils.py
new file mode 100644
index 0000000..cafb00f
--- /dev/null
+++ b/ooni/tests/test_utils.py
@@ -0,0 +1,21 @@
+import os
+import unittest
+from ooni.utils import pushFilenameStack
+basefilename = os.path.abspath('dummyfile')
+class TestUtils(unittest.TestCase):
+    def test_pushFilenameStack(self):
+        f = open(basefilename, "w+")
+        f.write("0\n")
+        f.close()
+        for i in xrange(1, 5):
+            f = open(basefilename+".%s" % i, "w+")
+            f.write("%s\n" % i)
+            f.close()
+
+        pushFilenameStack(basefilename)
+        for i in xrange(1, 5):
+            f = open(basefilename+".%s" % i)
+            c = f.readlines()[0].strip()
+            self.assertEqual(str(i-1), str(c))
+            f.close()
+



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