'Validate invalid enabled formats.
Test that an exception is raised when passing invalid boolean-like
values as `enabled`.'

def test_create_entity_with_invalid_enabled_format_raises_exception(self):

    for format in _INVALID_ENABLED_FORMATS:
        request_to_validate = {'name': self.resource_name, 'enabled': format}
        self.assertRaises(exception.SchemaValidationError, self.create_schema_validator.validate, request_to_validate)
