def test_fail_setup_if_no_command_topic(self):
        self.hass.config.components = ['mqtt']
        assert not _setup_component(self.hass, garage_door.DOMAIN, {
            garage_door.DOMAIN: {
                'platform': 'mqtt',
                'name': 'test',
                'state_topic': '/home/garage_door/door'
            }
        })
        self.assertIsNone(self.hass.states.get('garage_door.test'))
Test if command fails with command topic.
dataset/ETHPy150Open home-assistant/home-assistant/tests/components/garage_door/test_mqtt.py/TestGarageDoorMQTT.test_fail_setup_if_no_command_topic