update
This commit is contained in:
@@ -36,8 +36,8 @@ def test_text_message():
|
||||
print(" Payloads: {}".format(len(env.payloads)))
|
||||
|
||||
# Expected output on receiver:
|
||||
# payloads = smartreceive(msg)
|
||||
# for dataname, data, type in payloads:
|
||||
# envelope = smartreceive(msg)
|
||||
# for dataname, data, type in envelope["payloads"]:
|
||||
# print("Received {}: {}".format(dataname, data))
|
||||
|
||||
|
||||
@@ -68,8 +68,8 @@ def test_dictionary_message():
|
||||
print(" Payloads: {}".format(len(env.payloads)))
|
||||
|
||||
# Expected output on receiver:
|
||||
# payloads = smartreceive(msg)
|
||||
# for dataname, data, type in payloads:
|
||||
# envelope = smartreceive(msg)
|
||||
# for dataname, data, type in envelope["payloads"]:
|
||||
# if type == "dictionary":
|
||||
# print("Config: {}".format(data))
|
||||
|
||||
@@ -99,8 +99,8 @@ def test_mixed_payloads():
|
||||
print(" Payloads: {}".format(len(env.payloads)))
|
||||
|
||||
# Expected output on receiver:
|
||||
# payloads = smartreceive(msg)
|
||||
# for dataname, data, type in payloads:
|
||||
# envelope = smartreceive(msg)
|
||||
# for dataname, data, type in envelope["payloads"]:
|
||||
# print("Received {}: {} (type: {})".format(dataname, data if type != "binary" else len(data), type))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user