'Test setting up the automation.'

def setup_automation(self, trigger):

    assert setup.setup_component(self.hass, automation.DOMAIN, {automation.DOMAIN: [{'alias': 'My    Test', 'trigger': trigger, 'action': {'service': 'test.automation'}}]})
    self.hass.block_till_done()
