def test_check_env_vars(self, monkeypatch):
    '\n        Test that we return True/False appropriately if the env vars are set.\n        '
    context = Context(TLSv1_METHOD)
    dir_var = 'CUSTOM_DIR_VAR'
    file_var = 'CUSTOM_FILE_VAR'
    assert (context._check_env_vars_set(dir_var, file_var) is False)
    monkeypatch.setenv(dir_var, 'value')
    monkeypatch.setenv(file_var, 'value')
    assert (context._check_env_vars_set(dir_var, file_var) is True)
    assert (context._check_env_vars_set(dir_var, file_var) is True)
Test that we return True/False appropriately if the env vars are set.
def test_check_env_vars(self, monkeypatch):
    '\n        \n        '
    context = Context(TLSv1_METHOD)
    dir_var = 'CUSTOM_DIR_VAR'
    file_var = 'CUSTOM_FILE_VAR'
    assert (context._check_env_vars_set(dir_var, file_var) is False)
    monkeypatch.setenv(dir_var, 'value')
    monkeypatch.setenv(file_var, 'value')
    assert (context._check_env_vars_set(dir_var, file_var) is True)
    assert (context._check_env_vars_set(dir_var, file_var) is True)