'Test the exit move of a beacon.'

def test_mobile_exit_move_beacon(self):

    message = REGION_ENTER_MESSAGE.copy()
    message['desc'] = IBEACON_DEVICE
    self.send_message(EVENT_TOPIC, message)
    self.assert_tracker_latitude(2.0)
    self.assert_tracker_state('outer')
    message = REGION_LEAVE_MESSAGE.copy()
    message['desc'] = IBEACON_DEVICE
    message['lat'] = '3.0'
    self.send_message(EVENT_TOPIC, message)
    self.assert_tracker_latitude(3.0)
    message = LOCATION_MESSAGE.copy()
    message['lat'] = '4.0'
    self.send_message(LOCATION_TOPIC, LOCATION_MESSAGE)
    self.assert_tracker_latitude(3.0)
