def test_ignore_multipart_report(self, account_maker, datadir): acc1 = account_maker() acc1.modify(email_regex='*****@*****.**') msg = mime.parse_message_from_file( datadir.open("multipart_report.eml")) r = acc1.process_incoming(msg) assert r.pah.error == "Ignoring 'multipart/report' message."
def test_parse_message_from_file(datadir): msg = mime.parse_message_from_file(datadir.open("rsa2048-simple.eml")) assert msg.get_all("Autocrypt") assert msg.get_payload()
def test_get_peer_keyhandle(self, account_maker, datadir): msg = mime.parse_message_from_file(datadir.open("rsa2048-simple.eml")) acc1 = account_maker() acc1.process_incoming(msg) ps = acc1.get_peerstate("*****@*****.**") assert ps.public_keyhandle == 'BAFC533CD993BD7F'