def setUp(self):  # pylint: disable=invalid-name
        self.hass = get_test_home_assistant()
        self.mock_publish = mock_mqtt_component(self.hass)
multiple factories for type
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/garage_door/test_mqtt.py/TestGarageDoorMQTT.setUp--crossover with--dataset/ETHPy150Open enthought/traits/traits/tests/test_protocols_usage.py/ProtocolsUsageTestCase.test_multiple_factories_for_type