def setUpModule():   # pylint: disable=invalid-name
    global hass

    hass = get_test_home_assistant()
    bootstrap.setup_component(hass, http.DOMAIN, {
        http.DOMAIN: {
            http.CONF_SERVER_PORT: SERVER_PORT
        }
    })

    # Set up API
    bootstrap.setup_component(hass, 'api')

    # Set up device tracker
    bootstrap.setup_component(hass, device_tracker.DOMAIN, {
        device_tracker.DOMAIN: {
            'platform': 'locative'
        }
    })

    hass.start()
Tests that passing a non-https URL with https_only=True will raise a
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/device_tracker/test_locative.py/setUpModule--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/utils/url_test.py/UrlTestCase.test_http_basic_auth_https_only