[tor-commits] [bridgedb/master] Change assertTrue(a == b) in unittest to assertEquals.

isis at torproject.org isis at torproject.org
Sun Mar 16 19:04:58 UTC 2014


commit d3ce8311f9091ebec4175f2e4f342912097c8ed8
Author: Isis Lovecruft <isis at torproject.org>
Date:   Wed Mar 12 05:42:22 2014 +0000

    Change assertTrue(a == b) in unittest to assertEquals.
---
 lib/bridgedb/test/test_captcha.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridgedb/test/test_captcha.py b/lib/bridgedb/test/test_captcha.py
index 2e4a1cf..27dd6e0 100644
--- a/lib/bridgedb/test/test_captcha.py
+++ b/lib/bridgedb/test/test_captcha.py
@@ -163,7 +163,7 @@ class GimpCaptchaTests(unittest.TestCase):
         decoded = urlsafe_b64decode(challenge)
         hmac, orig = decoded.split(';', 1)
         correctHMAC = crypto.getHMAC(self.hmacKey, orig)
-        self.assertTrue(hmac == correctHMAC)
+        self.assertEquals(hmac, correctHMAC)
 
     def test_createChallenge_decryptedAnswerMatches(self):
         """The HMAC in createChallenge() return value should be valid."""





More information about the tor-commits mailing list