Skip to content

Commit

Permalink
Test repr() for PublicKey (#1879)
Browse files Browse the repository at this point in the history
The new PublicKey tests did not test the repr() method, increase
coverage by doing so.
  • Loading branch information
s-t-e-v-e-n-k committed Mar 22, 2021
1 parent 696793d commit e0acd8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/PublicKey.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ def testAttributes(self):
self.public_key.key, "u5e1Z25+z8pmgVVt5Pd8k0z/sKpVL1MXYtRAecE4vm8="
)
self.assertEqual(self.public_key.key_id, "568250167242549743")
self.assertEqual(
repr(self.public_key),
'PublicKey(key_id="568250167242549743", key="u5e1Z25+z8pmgVVt5Pd8k0z/sKpVL1MXYtRAecE4vm8=")',
)

0 comments on commit e0acd8f

Please sign in to comment.