def METHOD_NAME(self):
    with patch.dict(
        settings_loader.environ, {'SEARXNG_SETTINGS_PATH': join(test_dir, 'settings/user_settings_remove2.yml')}
    ):
        settings, msg = settings_loader.load_settings()
        self.assertTrue(msg.startswith('merge the default settings'))
        self.assertEqual(settings['server']['secret_key'], "user_secret_key")
        self.assertEqual(settings['server']['default_http_headers']['Custom-Header'], "Custom-Value")
        engine_names = [engine['name'] for engine in settings['engines']]
        self.assertNotIn('wikinews', engine_names)
        self.assertNotIn('wikibooks', engine_names)
        self.assertIn('wikipedia', engine_names)
        wikipedia = list(filter(lambda engine: (engine.get('name')) == 'wikipedia', settings['engines']))
        self.assertEqual(wikipedia[0]['engine'], 'wikipedia')
        self.assertEqual(wikipedia[0]['tokens'], ['secret_token'])
        newengine = list(filter(lambda engine: (engine.get('name')) == 'newengine', settings['engines']))
        self.assertEqual(newengine[0]['engine'], 'dummy')