Browse Source

yellow color for notify

PYADPT-55
Volker Birk 6 years ago
parent
commit
14e0e458f1
  1. 5
      test/sync_handshake.py

5
test/sync_handshake.py

@ -98,8 +98,9 @@ def messageToSend(msg):
class UserInterface(pEp.UserInterface): class UserInterface(pEp.UserInterface):
def notifyHandshake(self, me, partner, signal): def notifyHandshake(self, me, partner, signal):
output("on " + device_name + " signal " + str(signal) + " for identities " + str(me.fpr) + " " + print(colored(str(signal), "yellow"), end=" ")
str(partner.fpr)) output("on " + device_name + "" if not me.fpr else
"for identities " + str(me.fpr) + " " + str(partner.fpr))
if me.fpr and partner.fpr: if me.fpr and partner.fpr:
assert me.fpr != partner.fpr assert me.fpr != partner.fpr

Loading…
Cancel
Save