def METHOD_NAME(dd_run_check, extra_config, expected_http_kwargs):
    instance = deepcopy(LEGACY_REST_INSTANCE)
    instance.update(extra_config)
    check = TeamCityRest('teamcity', {}, [instance])
    with patch('datadog_checks.base.utils.http.requests.get') as r:
        dd_run_check(check)
        http_wargs = {
            'auth': ANY,
            'cert': ANY,
            'headers': ANY,
            'proxies': ANY,
            'timeout': ANY,
            'verify': ANY,
            'allow_redirects': ANY,
        }
        http_wargs.update(expected_http_kwargs)
        r.assert_called_with(ANY, **http_wargs)