def test_verify_bad_signatures(base_context, params): gpg = sgpg.GPG(base_context) data = sgpg.sign(gpg, "foo", keyid=params[1]["fingerprint"]) with pytest.raises(ScriptWorkerGPGException): sgpg.verify_signature(gpg, data)
def test_verify_good_signatures(base_context, params): gpg = sgpg.GPG(base_context) data = sgpg.sign(gpg, "foo", keyid=params[1]["fingerprint"]) sgpg.verify_signature(gpg, data)