[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Change checkSolution() unittest to check for tuple.
commit 9ec8802c7b326bfd518d70211e52afc14fc57e4e
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Wed Mar 26 05:02:03 2014 +0000
Change checkSolution() unittest to check for tuple.
---
lib/bridgedb/test/test_HTTPServer.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/bridgedb/test/test_HTTPServer.py b/lib/bridgedb/test/test_HTTPServer.py
index 4e6c86b..22b9c63 100644
--- a/lib/bridgedb/test/test_HTTPServer.py
+++ b/lib/bridgedb/test/test_HTTPServer.py
@@ -358,9 +358,9 @@ class ReCaptchaProtectedResourceTests(unittest.TestCase):
self.request.addArg('captcha_challenge_field', '')
self.request.addArg('captcha_response_field', '')
- self.assertIs(False,
- self.successResultOf(
- self.captchaResource.checkSolution(self.request)))
+ self.assertEqual((False, self.request),
+ self.successResultOf(
+ self.captchaResource.checkSolution(self.request)))
def test_getRemoteIP_useRandomIP(self):
"""Check that removing our remoteip setting produces a random IP."""
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits