'Test invalid name.'

def test_invalid_name_does_not_create(self):

    with assert_setup_component(0):
        assert setup.setup_component(self.hass, 'binary_sensor', {'binary_sensor': {'platform': 'template', 'sensors': {'test    INVALID    sensor': {'entity_id': 'sensor.test_state'}}}})
    assert (self.hass.states.all() == [])
