def test_exit_first(self, update_config):
        data = {
            'latitude': 40.7855,
            'longitude': -111.7367,
            'device': 'new_device',
            'id': 'Home',
            'trigger': 'exit'
        }

        # Exit Home
        req = requests.get(_url(data))
        self.assertEqual(200, req.status_code)

        state = hass.states.get('{}.{}'.format('device_tracker',
                                               data['device']))
        self.assertEqual(state.state, 'not_home')
Test when an exit message is sent first on a new device.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/device_tracker/test_locative.py/TestLocative.test_exit_first