#NEWLINE# def test_mobile_enter_exit_region_beacon( self ) : #NEWLINE# #INDENT# 'Test the enter and the exit of a region beacon.' #NEWLINE# message = REGION_ENTER_MESSAGE . copy ( ) #NEWLINE# message [ 'desc' ] = IBEACON_DEVICE #NEWLINE# self . send_message ( EVENT_TOPIC , self ) #NEWLINE# self . assert_tracker_latitude ( 2.0 ) #NEWLINE# self . assert_tracker_state ( 'outer' ) #NEWLINE# message = REGION_ENTER_MESSAGE . copy ( ) #NEWLINE# message [ 'desc' ] = 'inner_2' #NEWLINE# self . send_message ( EVENT_TOPIC , message ) #NEWLINE# self . assert_tracker_latitude ( 2.1 ) #NEWLINE# self . assert_tracker_state ( 'inner_2' ) #NEWLINE# message = REGION_LEAVE_MESSAGE . copy ( ) #NEWLINE# message [ 'desc' ] = 'inner_2' #NEWLINE# self . send_message ( EVENT_TOPIC , message ) #NEWLINE# self . assert_tracker_latitude ( 2.0 )