Skip to content

Commit 7c5b3da

Browse files
committed
use more specific asserts in test_pyecdsa module
1 parent b71c3e7 commit 7c5b3da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/ecdsa/test_pyecdsa.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,9 @@ def test_public_key_recovery(self):
653653
)
654654

655655
# Test if original vk is the list of recovered keys
656-
self.assertTrue(
657-
vk.pubkey.point
658-
in [recovered_vk.pubkey.point for recovered_vk in recovered_vks]
656+
self.assertIn(
657+
vk.pubkey.point,
658+
[recovered_vk.pubkey.point for recovered_vk in recovered_vks],
659659
)
660660

661661
def test_public_key_recovery_with_custom_hash(self):
@@ -684,9 +684,9 @@ def test_public_key_recovery_with_custom_hash(self):
684684
self.assertEqual(sha256, recovered_vk.default_hashfunc)
685685

686686
# Test if original vk is the list of recovered keys
687-
self.assertTrue(
688-
vk.pubkey.point
689-
in [recovered_vk.pubkey.point for recovered_vk in recovered_vks]
687+
self.assertIn(
688+
vk.pubkey.point,
689+
[recovered_vk.pubkey.point for recovered_vk in recovered_vks],
690690
)
691691

692692
def test_encoding(self):

0 commit comments

Comments
 (0)