'Test if message is fired on topic and payload match.'

def test_if_fires_on_topic_and_payload_match(self):

    assert setup_component(self.hass, automation.DOMAIN, {automation.DOMAIN: {'trigger': {'platform': 'mqtt', 'topic': 'test-topic', 'payload': 'hello'}, 'action': {'service': 'test.automation'}}})
    fire_mqtt_message(self.hass, 'test-topic', 'hello')
    self.hass.block_till_done()
    self.assertEqual(1, len(self.calls))
