#NEWLINE# def send_msg( self , msg ) : #NEWLINE# #INDENT# if isinstance ( self . dp , DummyDatapath ) : #NEWLINE# #INDENT# raise TestError ( STATE_DISCONNECTED ) #NEWLINE# #UNINDENT# msg . xid = None #NEWLINE# self . dp . set_xid ( msg ) #NEWLINE# self . dp . send_msg ( msg ) #NEWLINE# return msg . xid