'Test the enter and the exit of a region beacon.'

def test_mobile_enter_exit_region_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_ENTER_MESSAGE.copy()
    message['desc'] = 'inner_2'
    self.send_message(EVENT_TOPIC, message)
    self.assert_tracker_latitude(2.1)
    self.assert_tracker_state('inner_2')
    message = REGION_LEAVE_MESSAGE.copy()
    message['desc'] = 'inner_2'
    self.send_message(EVENT_TOPIC, message)
    self.assert_tracker_latitude(2.0)
