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

[tor-commits] [ooni-probe/master] Disable DNS test



commit cba5b0c1c8bd16d66a09f325a1509f3dc0faf3be
Author: Arturo Filastò <art@xxxxxxxxx>
Date:   Sat Dec 28 15:40:34 2013 +0100

    Disable DNS test
---
 ooni/tests/disable_test_dns.py |   24 ++++++++++++++++++++++++
 ooni/tests/test_dns.py         |   24 ------------------------
 2 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/ooni/tests/disable_test_dns.py b/ooni/tests/disable_test_dns.py
new file mode 100644
index 0000000..e9bb524
--- /dev/null
+++ b/ooni/tests/disable_test_dns.py
@@ -0,0 +1,24 @@
+#
+# This unittest is to verify that our usage of the twisted DNS resolver does
+# not break with new versions of twisted.
+
+import pdb
+from twisted.trial import unittest
+
+from twisted.internet import reactor
+
+from twisted.names import dns
+from twisted.names.client import Resolver
+
+class DNSTest(unittest.TestCase):
+    def test_a_lookup_ooni_query(self):
+        def done_query(message, *arg):
+            answer = message.answers[0]
+            self.assertEqual(answer.type, 1)
+
+        dns_query = [dns.Query('ooni.nu', type=dns.A)]
+        resolver = Resolver(servers=[('8.8.8.8', 53)])
+        d = resolver.queryUDP(dns_query)
+        d.addCallback(done_query)
+        return d
+
diff --git a/ooni/tests/test_dns.py b/ooni/tests/test_dns.py
deleted file mode 100644
index e9bb524..0000000
--- a/ooni/tests/test_dns.py
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# This unittest is to verify that our usage of the twisted DNS resolver does
-# not break with new versions of twisted.
-
-import pdb
-from twisted.trial import unittest
-
-from twisted.internet import reactor
-
-from twisted.names import dns
-from twisted.names.client import Resolver
-
-class DNSTest(unittest.TestCase):
-    def test_a_lookup_ooni_query(self):
-        def done_query(message, *arg):
-            answer = message.answers[0]
-            self.assertEqual(answer.type, 1)
-
-        dns_query = [dns.Query('ooni.nu', type=dns.A)]
-        resolver = Resolver(servers=[('8.8.8.8', 53)])
-        d = resolver.queryUDP(dns_query)
-        d.addCallback(done_query)
-        return d
-



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