commit 9ec8802c7b326bfd518d70211e52afc14fc57e4e Author: Isis Lovecruft isis@torproject.org 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@lists.torproject.org