Skip to content

Commit

Permalink
Expand unit test to test tuple input.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelaiw authored and Legrandin committed Sep 24, 2023
1 parent e1ca357 commit 6b7a58f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/Crypto/SelfTest/Hash/test_TupleHash.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ def test_update(self):

h = self.new()
h.update(b'STRING1', b'STRING2')
mac3 = h.digest()
self.assertEqual(mac2, mac3)
self.assertEqual(mac2, h.digest())

h = self.new()
t = b'STRING1', b'STRING2'
h.update(*t)
self.assertEqual(mac2, h.digest())

def test_update_negative(self):
h = self.new()
Expand Down

0 comments on commit 6b7a58f

Please sign in to comment.