(self)
| 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() |