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):
me = pEp.Identity("alice@peptest.ch", name + " Neuman")
me = pEp.Identity("alice@peptest.ch", name + " of Alice Neuman")
pEp.myself(me)
pEp.messageToSend = messageToSend
ui = UserInterface()

20
test/sync_test.py

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

Loading…
Cancel
Save