def METHOD_NAME(self):
    config = {
        "KEY": 15,  # priority=addon
    }
    settings_dict = {
        "ADDONS": {get_addon_cls(config): 1},
    }
    crawler = get_crawler(settings_dict=settings_dict)
    self.assertEqual(crawler.settings.getint("KEY"), 15)
    settings = Settings(settings_dict)
    settings.set("KEY", 0, priority="default")
    runner = CrawlerRunner(settings)
    crawler = runner.create_crawler(Spider)
    self.assertEqual(crawler.settings.getint("KEY"), 15)
    settings_dict = {
        "KEY": 20,  # priority=project
        "ADDONS": {get_addon_cls(config): 1},
    }
    settings = Settings(settings_dict)
    settings.set("KEY", 0, priority="default")
    runner = CrawlerRunner(settings)
    crawler = runner.create_crawler(Spider)
    self.assertEqual(crawler.settings.getint("KEY"), 20)