'Exception raised without `user_id` in create request.'

def test_validate_credential_without_user_id_fails(self):

    request_to_validate = {'blob': 'some    credential    blob', 'type': 'ec2'}
    self.assertRaises(exception.SchemaValidationError, self.create_credential_validator.validate, request_to_validate)
