'Exception raised when boolean-like values as `enabled`.'

def test_validate_create_endpoint_fails_with_invalid_enabled(self):

    for invalid_enabled in _INVALID_ENABLED_FORMATS:
        request_to_validate = {'enabled': invalid_enabled, 'service_id': uuid.uuid4().hex, 'interface': 'public', 'url': 'https://service.example.com:5000/'}
        self.assertRaises(exception.SchemaValidationError, self.create_endpoint_validator.validate, request_to_validate)
