'Test setup with invalid configs.'

def test_setup_with_invalid_configs(self):

    for value in ({'test': {}}, {'test    hello    world': {'sequence': [{'event': 'bla'}]}}, {'test': {'sequence': {'event': 'test_event', 'service': 'homeassistant.turn_on'}}}):
        assert (not setup_component(self.hass, 'script', {'script': value})), 'Script    loaded    with    wrong    config    {}'.format(value)
        self.assertEqual(0, len(self.hass.states.entity_ids('script')))
