def METHOD_NAME(self, config_loader, reason):
    try:
        config_loader.load_and_set()
        self.fail("Should fail because %s" % reason)
    except ConfigException:
        # expected
        pass