#NEWLINE# def test_event_entry_exit_right_order( self ) : #NEWLINE# #INDENT# 'Test the event for ordering.' #NEWLINE# self . send_message ( EVENT_TOPIC , REGION_ENTER_MESSAGE ) #NEWLINE# self . assert_location_state ( 'inner' ) #NEWLINE# self . assert_location_latitude ( 2.1 ) #NEWLINE# self . assert_location_accuracy ( 10.0 ) #NEWLINE# message = REGION_ENTER_MESSAGE . copy ( ) #NEWLINE# message [ 'desc' ] = 'inner_2' #NEWLINE# self . send_message ( EVENT_TOPIC , message ) #NEWLINE# self . assert_location_state ( 'inner_2' ) #NEWLINE# self . assert_location_latitude ( 2.1 ) #NEWLINE# self . assert_location_accuracy ( 10.0 ) #NEWLINE# message = REGION_LEAVE_MESSAGE . copy ( ) #NEWLINE# message [ 'desc' ] = 'inner_2' #NEWLINE# self . send_message ( EVENT_TOPIC , message ) #NEWLINE# self . assert_location_state ( 'inner' ) #NEWLINE# self . assert_location_latitude ( 2.1 ) #NEWLINE# self . assert_location_accuracy ( 10.0 ) #NEWLINE# self . send_message ( EVENT_TOPIC , REGION_LEAVE_MESSAGE ) #NEWLINE# self . assert_location_state ( 'outer' ) #NEWLINE# self . assert_location_latitude ( 2.0 ) #NEWLINE# self . assert_location_accuracy ( 60.0 )