Skip to content

Commit 06b6f1e

Browse files
author
Sean Trott
committed
transport test
1 parent 73a6fcd commit 06b6f1e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/tests/transport_test.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from nluas.Transport import *
2+
import sys
3+
4+
name, destination = sys.argv[1], sys.argv[2]
5+
6+
t = Transport(name)
7+
t.subscribe(destination, lambda ntuple: print("Got", ntuple))
8+
9+
while True:
10+
t.send(destination, input())
11+
12+

0 commit comments

Comments
 (0)