[tor-commits] [bridgedb/develop] Change unittests for reCaptcha render_POST() to check NOT_DONE_YET.
isis at torproject.org
isis at torproject.org
Wed Mar 26 05:49:31 UTC 2014
commit a3bb0ec066907bbf3b888b232d6b64a8a3c2f2ca
Author: Isis Lovecruft <isis at torproject.org>
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):
More information about the tor-commits
mailing list