'Setup things to be run when tests are started.'

def setup_method(self, _):

    self.hass = get_test_home_assistant()
    mock_mqtt_component(self.hass)
    with assert_setup_component(1, device_tracker.DOMAIN):
        assert setup_component(self.hass, device_tracker.DOMAIN, {device_tracker.DOMAIN: {CONF_PLATFORM: 'owntracks', CONF_MAX_GPS_ACCURACY: 200, CONF_WAYPOINT_IMPORT: True, CONF_WAYPOINT_WHITELIST: ['jon', 'greg']}})
    self.hass.states.set('zone.inner', 'zoning', {'name': 'zone', 'latitude': 2.1, 'longitude': 1.1, 'radius': 10})
    self.hass.states.set('zone.inner_2', 'zoning', {'name': 'zone', 'latitude': 2.1, 'longitude': 1.1, 'radius': 10})
    self.hass.states.set('zone.outer', 'zoning', {'name': 'zone', 'latitude': 2.0, 'longitude': 1.0, 'radius': 100000})
    self.hass.states.set(DEVICE_TRACKER_STATE, None)
    owntracks.REGIONS_ENTERED = defaultdict(list)
    owntracks.MOBILE_BEACONS_ACTIVE = defaultdict(list)
