Browse Source

present as device group

PYADPT-55
Volker Birk 6 years ago
parent
commit
2b1f440528
  1. 2
      test/sync_handshake.py
  2. 20
      test/sync_test.py

2
test/sync_handshake.py

@ -27,7 +27,7 @@ class UserInterface(pEp.UserInterface):
def run(name): def run(name):
me = pEp.Identity("alice@peptest.ch", name + " Neuman") me = pEp.Identity("alice@peptest.ch", name + " of Alice Neuman")
pEp.myself(me) pEp.myself(me)
pEp.messageToSend = messageToSend pEp.messageToSend = messageToSend
ui = UserInterface() ui = UserInterface()

20
test/sync_test.py

@ -71,22 +71,22 @@ if __name__ == "__main__":
rmrf("TestInbox") rmrf("TestInbox")
unlock(pathlib.Path("TestInbox")) unlock(pathlib.Path("TestInbox"))
rmrf("Alice") rmrf("Phone")
rmrf("Barbara") rmrf("Laptop")
else: else:
from multiprocessing import Process from multiprocessing import Process
os.makedirs("TestInbox", exist_ok=True) os.makedirs("TestInbox", exist_ok=True)
setup("Alice") setup("Phone")
setup("Barbara") setup("Laptop")
Alice = Process(target=test_for, args=("Alice",)) Phone = Process(target=test_for, args=("Phone",))
Barbara = Process(target=test_for, args=("Barbara",)) Laptop = Process(target=test_for, args=("Laptop",))
Alice.start() Phone.start()
Barbara.start() Laptop.start()
Alice.join() Phone.join()
Barbara.join() Laptop.join()

Loading…
Cancel
Save