

@staticmethod
@patch.dict('os.environ', {
    'DATADUCT_CONFIG_PATH': '/test/test.cfg',
})
def test_get_config_files_with_enviroment_variable():
    'Tests that correct config file paths are returned when there is\n        an enviroment variable\n        '
    expected = ['/etc/dataduct.cfg', expanduser('~/.dataduct/dataduct.cfg'), '/test/test.cfg']
    result = get_config_files()
    eq_(result, expected)

dataset/ETHPy150Open coursera/dataduct/dataduct/config/tests/test_config.py TestConfig.test_get_config_files_with_enviroment_variable/original