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

Method test_parse_wrong_magic

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

Source from the content-addressed store, hash-verified

259 assert not rsa_sec.verify("Text 2", sig)
260
261 def test_parse_wrong_magic(self):
262 keytext = _read('tests/testdata/keys/rsa.1.sec.asc').replace('KEY', 'EKY')
263 key = PGPKey()
264 with pytest.raises(ValueError):
265 key.parse(keytext)
266
267 def test_parse_wrong_crc24(self, recwarn):
268 keytext = _read('tests/testdata/keys/rsa.1.sec.asc').splitlines()

Callers

nothing calls this directly

Calls 3

parseMethod · 0.95
PGPKeyClass · 0.90
_readFunction · 0.85

Tested by

no test coverage detected