Skip to content

Commit

Permalink
use more specific asserts in test_pyecdsa module
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Dec 10, 2020
1 parent b71c3e7 commit 7c5b3da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ecdsa/test_pyecdsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,9 @@ def test_public_key_recovery(self):
)

# Test if original vk is the list of recovered keys
self.assertTrue(
vk.pubkey.point
in [recovered_vk.pubkey.point for recovered_vk in recovered_vks]
self.assertIn(
vk.pubkey.point,
[recovered_vk.pubkey.point for recovered_vk in recovered_vks],
)

def test_public_key_recovery_with_custom_hash(self):
Expand Down Expand Up @@ -684,9 +684,9 @@ def test_public_key_recovery_with_custom_hash(self):
self.assertEqual(sha256, recovered_vk.default_hashfunc)

# Test if original vk is the list of recovered keys
self.assertTrue(
vk.pubkey.point
in [recovered_vk.pubkey.point for recovered_vk in recovered_vks]
self.assertIn(
vk.pubkey.point,
[recovered_vk.pubkey.point for recovered_vk in recovered_vks],
)

def test_encoding(self):
Expand Down

0 comments on commit 7c5b3da

Please sign in to comment.