github.com/mit-dci/lit@v0.0.0-20221102210550-8c3d3b49f2ce/test/itest_connect.py (about)

     1  import testlib
     2  
     3  def run_test(env):
     4      alice = env.lits[0]
     5      bob = env.lits[1]
     6      print('Connecting Alice', alice.lnid, 'to Bob', bob.lnid)
     7      alice.connect_to_peer(bob)
     8      print('Connected')
     9      alice.rpc.Say(Peer=alice.get_peer_id(bob), Message="hello!")
    10      print('Alice said hello to Bob.')
    11      bob.rpc.Say(Peer=bob.get_peer_id(alice), Message="world!")
    12      print('Bob said hello to Alice.')