def test_verify_no_fallback_if_env_vars_set(self, monkeypatch):
    "\n        Test that we don't use the fallback path if env vars are set.\n        "
    context = Context(TLSv1_METHOD)
    monkeypatch.setattr(_lib, 'SSL_CTX_set_default_verify_paths', (lambda x: 1))
    dir_env_var = _ffi.string(_lib.X509_get_default_cert_dir_env()).decode('ascii')
    file_env_var = _ffi.string(_lib.X509_get_default_cert_file_env()).decode('ascii')
    monkeypatch.setenv(dir_env_var, 'value')
    monkeypatch.setenv(file_env_var, 'value')
    context.set_default_verify_paths()
    monkeypatch.setattr(context, '_fallback_default_verify_paths', raiser(SystemError))
    context.set_default_verify_paths()
Test that we don't use the fallback path if env vars are set.
def test_verify_no_fallback_if_env_vars_set(self, monkeypatch):
    "\n        \n        "
    context = Context(TLSv1_METHOD)
    monkeypatch.setattr(_lib, 'SSL_CTX_set_default_verify_paths', (lambda x: 1))
    dir_env_var = _ffi.string(_lib.X509_get_default_cert_dir_env()).decode('ascii')
    file_env_var = _ffi.string(_lib.X509_get_default_cert_file_env()).decode('ascii')
    monkeypatch.setenv(dir_env_var, 'value')
    monkeypatch.setenv(file_env_var, 'value')
    context.set_default_verify_paths()
    monkeypatch.setattr(context, '_fallback_default_verify_paths', raiser(SystemError))
    context.set_default_verify_paths()