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

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



commit d3ce8311f9091ebec4175f2e4f342912097c8ed8
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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."""



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