From e0acd8f4665f085b6507dadc577bbcd03e447578 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 22 Mar 2021 13:07:22 +1100 Subject: [PATCH] Test repr() for PublicKey (#1879) The new PublicKey tests did not test the repr() method, increase coverage by doing so. --- tests/PublicKey.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/PublicKey.py b/tests/PublicKey.py index 2c4990e6..c86f6d12 100644 --- a/tests/PublicKey.py +++ b/tests/PublicKey.py @@ -40,3 +40,7 @@ class PublicKey(Framework.TestCase): 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=")', + )