From 5a2f387735bbc753c4d7cd1c12d8f721c687e2f8 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sat, 23 Feb 2019 23:31:35 +0100 Subject: [PATCH] minimail write --- test/sync_handshake.py | 4 +++- test/sync_test.py | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/test/sync_handshake.py b/test/sync_handshake.py index daa2112..0d443ff 100644 --- a/test/sync_handshake.py +++ b/test/sync_handshake.py @@ -7,11 +7,13 @@ import pEp +import minimail def messageToSend(msg): # this is assuming that msg is unencrypted; only true for beacons print("\n" + msg.attachments[0].decode()) + minimail.send(msg) class UserInterface(pEp.UserInterface): @@ -20,7 +22,7 @@ class UserInterface(pEp.UserInterface): def run(path): - me = pEp.Identity(path + "@peptest.ch", path + " Neuman") + me = pEp.Identity("alice@peptest.ch", path + " Neuman") pEp.myself(me) pEp.messageToSend = messageToSend ui = UserInterface() diff --git a/test/sync_test.py b/test/sync_test.py index c7c3979..af1fabe 100644 --- a/test/sync_test.py +++ b/test/sync_test.py @@ -78,21 +78,21 @@ optParser.add_option("-c", "--clean", action="store_true", dest="clean") if options.clean: rmrf("TestInbox") rmrf("Alice") - rmrf("Bob") + rmrf("Barbara") else: os.makedirs("TestInbox", exist_ok=True) setup("Alice") - setup("Bob") + setup("Barbara") Alice = os.fork() if Alice == 0: test_for("Alice") else: - Bob = os.fork() - if Bob == 0: - test_for("Bob") + Barbara = os.fork() + if Barbara == 0: + test_for("Barbara") else: waitpid(Alice) - waitpid(Bob) + waitpid(Barbara)