def setUp(self):  # pylint: disable=invalid-name
        self.hass = get_test_home_assistant()
        mock_mqtt_component(self.hass)
This allows the class instance to be used as a decorator.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/sensor/test_mqtt.py/TestSensorMQTT.setUp--crossover with--dataset/ETHPy150Open elistevens/solari/wsgi/solariwsgi/core.py/DispatchTarget.__call__