def METHOD_NAME(self):
    self.config.include(c2cgeoportal_geoportal.includeme)
    def custom_validator(username, password):
        del username  # Unused
        del password  # Unused
        return False
    self.config.set_user_validator(custom_validator)
    assert self.config.registry.validate_user == custom_validator