pEp MixMailer prototype. See aditional documentation at https://mixmailer_docs.codeberg.page/ (source: https://gitea.pep.foundation/pEp.foundation/mixmailer_docs). See slides at gitea.pep.foundation/pEp.foundation/mixmailer_slides
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
437 B

import pytest
from mixnet import common, exceptions
def test_import_keys_succeed(import_keys, alice_sec_key_path):
common.import_keys([alice_sec_key_path])
# XXX: How to verify the keys are in the pep keyring?>
def test_import_keys_not_imported(datadir):
with pytest.raises(exceptions.PepNoKeyImported) as e:
common.import_keys([datadir.basepath.join("nokey.asc")])
assert str(e.value) == "No key imported."