'Exception raised when boolean-like parameters as `enabled`.
On service create, make sure an exception is raised if `enabled` is
not a boolean value.'

def test_validate_service_create_fails_with_invalid_enabled(self):

    for invalid_enabled in _INVALID_ENABLED_FORMATS:
        request_to_validate = {'enabled': invalid_enabled, 'type': uuid.uuid4().hex}
        self.assertRaises(exception.SchemaValidationError, self.create_service_validator.validate, request_to_validate)
