Skip to content

Commit

Permalink
Change assertTrue(a == b) in unittest to assertEquals.
Browse files Browse the repository at this point in the history
  • Loading branch information
isislovecruft committed Mar 12, 2014
1 parent 9aca433 commit d3ce831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bridgedb/test/test_captcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def test_createChallenge_hmacValid(self):
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."""
Expand Down

0 comments on commit d3ce831

Please sign in to comment.