def setUp(self):  # pylint: disable=invalid-name
        self.hass = get_test_home_assistant()
        mock_mqtt_component(self.hass)
Setup things to be run when tests are started.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/sensor/test_mqtt.py/TestSensorMQTT.setUp