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

Method test_parse_wrong_magic

tests/test_10_exceptions.py:386–390  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

384 msg.encrypt('asdf', sessionkey=0xabdf1234abdf1234, cipher=SymmetricKeyAlgorithm.AES128)
385
386 def test_parse_wrong_magic(self):
387 msgtext = _read('tests/testdata/messages/message.signed.asc').replace('MESSAGE', 'EMSSAGE')
388 msg = PGPMessage()
389 with pytest.raises(ValueError):
390 msg.parse(msgtext)
391
392
393class TestPGPSignature(object):

Callers

nothing calls this directly

Calls 3

parseMethod · 0.95
PGPMessageClass · 0.90
_readFunction · 0.85

Tested by

no test coverage detected