MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / test_select_pgpmessage

Method test_select_pgpmessage

tests/test_04_PGP_objects.py:263–270  ·  view source on GitHub ↗
(self, keyring)

Source from the content-addressed store, hash-verified

261 assert sigkey.fingerprint.keyid == sig.signer
262
263 def test_select_pgpmessage(self, keyring):
264 m1 = PGPMessage()
265 with open('tests/testdata/messages/message.rsa.cast5.asc', 'r') as m1f:
266 m1.parse(m1f.read())
267
268 with keyring.key(m1) as rsakey:
269 assert rsakey.fingerprint == "00EC FAF5 48AE B655 F861 8193 EEE0 97A0 17B9 79CA"
270 assert rsakey.parent.fingerprint == "F429 4BC8 094A 7E05 85C8 5E86 3747 3B37 58C4 4F36"
271
272 def test_unload_key(self, keyring):
273 with keyring.key("Test Repository Signing Key") as key:

Callers

nothing calls this directly

Calls 3

parseMethod · 0.95
PGPMessageClass · 0.90
keyMethod · 0.80

Tested by

no test coverage detected