'Test the event for exit zone.'

def test_event_exit_outside_zone_sets_away(self):

    self.send_message(EVENT_TOPIC, REGION_ENTER_MESSAGE)
    self.assert_location_state('inner')
    message = REGION_LEAVE_MESSAGE.copy()
    message['lon'] = 90.1
    message['lat'] = 90.1
    self.send_message(EVENT_TOPIC, message)
    self.assert_location_state(STATE_NOT_HOME)
