'Test if able to call a configured service.'

def test_executing_service(self):

    with tempfile.TemporaryDirectory() as tempdirname:
        path = os.path.join(tempdirname, 'called.txt')
        assert setup_component(self.hass, shell_command.DOMAIN, {shell_command.DOMAIN: {'test_service': 'date    >    {}'.format(path)}})
        self.hass.services.call('shell_command', 'test_service', blocking=True)
        self.hass.block_till_done()
        self.assertTrue(os.path.isfile(path))
