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

Method test_decrypt_wrongkey

tests/test_10_exceptions.py:205–208  ·  view source on GitHub ↗
(self, targette_sec)

Source from the content-addressed store, hash-verified

203 assert w.filename == __file__
204
205 def test_decrypt_wrongkey(self, targette_sec):
206 msg = PGPMessage.from_file('tests/testdata/messages/message.rsa.cast5.asc')
207 with pytest.raises(PGPError):
208 targette_sec.decrypt(msg)
209
210 def test_decrypt_protected_key(self, rsa_enc, rsa_pub):
211 with pytest.raises(PGPError), warnings.catch_warnings():

Callers

nothing calls this directly

Calls 2

from_fileMethod · 0.80
decryptMethod · 0.45

Tested by

no test coverage detected