#NEWLINE# def _test( self , state , * args ) : #NEWLINE# #INDENT# test = { #NEWLINE# #INDENT# STATE_INIT_FLOW : self . _test_initialize_flow , #NEWLINE# STATE_INIT_THROUGHPUT_FLOW : self . _test_initialize_flow , #NEWLINE# STATE_INIT_METER : self . target_sw . del_meters , #NEWLINE# STATE_INIT_GROUP : self . target_sw . del_groups , #NEWLINE# STATE_FLOW_INSTALL : self . _test_msg_install , #NEWLINE# STATE_THROUGHPUT_FLOW_INSTALL : self . _test_msg_install , #NEWLINE# STATE_METER_INSTALL : self . _test_msg_install , #NEWLINE# STATE_GROUP_INSTALL : self . _test_msg_install , #NEWLINE# STATE_FLOW_EXIST_CHK : self . _test_exist_check , #NEWLINE# STATE_THROUGHPUT_FLOW_EXIST_CHK : self . _test_exist_check , #NEWLINE# STATE_METER_EXIST_CHK : self . _test_exist_check , #NEWLINE# STATE_GROUP_EXIST_CHK : self . _test_exist_check , #NEWLINE# STATE_TARGET_PKT_COUNT : self . _test_get_packet_count , #NEWLINE# STATE_TESTER_PKT_COUNT : self . _test_get_packet_count , #NEWLINE# STATE_FLOW_MATCH_CHK : self . _test_flow_matching_check , #NEWLINE# STATE_NO_PKTIN_REASON : self . _test_no_pktin_reason_check , #NEWLINE# STATE_GET_MATCH_COUNT : self . _test_get_match_count , #NEWLINE# STATE_SEND_BARRIER : self . _test_send_barrier , #NEWLINE# STATE_FLOW_UNMATCH_CHK : self . _test_flow_unmatching_check , #NEWLINE# STATE_GET_THROUGHPUT : self . _test_get_throughput , #NEWLINE# STATE_THROUGHPUT_CHK : self . _test_throughput_check , #NEWLINE# #UNINDENT# } #NEWLINE# self . send_msg_xids = [ ] #NEWLINE# self . rcv_msgs = [ ] #NEWLINE# self . state = self #NEWLINE# return test [ state ] ( * args )