Skip to content

Commit

Permalink
fixes assertEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Apr 17, 2024
1 parent c2edf34 commit 4400eba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_wikibot.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestWikiBot(BaseTest):
Unit test for WikiBot
"""

def testCrypt(self):
def test_encryption(self):
"""test encryption/decryption"""
expected = "01234567890unsecure"
cypher = "koyYMmY93wJS_aqpp_PmyxZJKPH5FhSG"
Expand All @@ -25,9 +25,9 @@ def testCrypt(self):
c = Crypt(cypher, 20, salt)
secret1 = c.encrypt(expected)
# print(secret1)
self.assertEquals(secret, secret1)
self.assertEqual(secret, secret1)
pw = c.decrypt(secret)
self.assertEquals(expected, pw)
self.assertEqual(expected, pw)

def testRandomCrypt(self):
"""
Expand Down

0 comments on commit 4400eba

Please sign in to comment.