'Test the event for wrong order.'

def test_event_entry_exit_wrong_order(self):

    self.send_message(EVENT_TOPIC, REGION_ENTER_MESSAGE)
    self.assert_location_state('inner')
    message = REGION_ENTER_MESSAGE.copy()
    message['desc'] = 'inner_2'
    self.send_message(EVENT_TOPIC, message)
    self.assert_location_state('inner_2')
    self.send_message(EVENT_TOPIC, REGION_LEAVE_MESSAGE)
    self.assert_location_state('inner_2')
    message = REGION_LEAVE_MESSAGE.copy()
    message['desc'] = 'inner_2'
    self.send_message(EVENT_TOPIC, message)
    self.assert_location_state('outer')
