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

[tor-commits] [bridgedb/develop] Change unittests for reCaptcha render_POST() to check NOT_DONE_YET.



commit a3bb0ec066907bbf3b888b232d6b64a8a3c2f2ca
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date:   Wed Mar 26 05:03:10 2014 +0000

    Change unittests for reCaptcha render_POST() to check NOT_DONE_YET.
---
 lib/bridgedb/test/test_HTTPServer.py |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/bridgedb/test/test_HTTPServer.py b/lib/bridgedb/test/test_HTTPServer.py
index 22b9c63..872be3c 100644
--- a/lib/bridgedb/test/test_HTTPServer.py
+++ b/lib/bridgedb/test/test_HTTPServer.py
@@ -400,8 +400,7 @@ class ReCaptchaProtectedResourceTests(unittest.TestCase):
         self.request.addArg('captcha_response_field', '') 
 
         page = self.captchaResource.render_POST(self.request)
-        self.assertEqual(BeautifulSoup(page).find('meta')['http-equiv'],
-                         'refresh')
+        self.assertEqual(page, HTTPServer.server.NOT_DONE_YET)
 
     def test_render_POST_wrongSolution(self):
         """render_POST() with a wrong 'captcha_response_field' should return
@@ -415,8 +414,7 @@ class ReCaptchaProtectedResourceTests(unittest.TestCase):
         self.request.addArg('captcha_response_field', expectedResponse) 
 
         page = self.captchaResource.render_POST(self.request)
-        self.assertEqual(BeautifulSoup(page).find('meta')['http-equiv'],
-                         'refresh')
+        self.assertEqual(page, HTTPServer.server.NOT_DONE_YET)
 
 
 class DummyBridge(object):



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