def setUp(self):  # pylint: disable=invalid-name
        self.hass = get_test_home_assistant()
        self.hass.config.components.append('group')
        zone.setup(self.hass, {
            'zone': {
                'name': 'test',
                'latitude': 32.880837,
                'longitude': -117.237561,
                'radius': 250,
            }
        })

        self.calls = []

        def record_call(service):
            self.calls.append(service)

        self.hass.services.register('test', 'automation', record_call)
Setup things to be run when tests are started.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/automation/test_zone.py/TestAutomationZone.setUp