示例#1
0
def test_untar():
    download_utils.untar('tests/resources/file.tar.gz', cleanup=False)
    expected_file_location = os.path.join('tests', 'resources', 'file',
                                          'file.txt')
    assert os.path.exists(expected_file_location)
    os.remove(expected_file_location)
def test_untar():
    download_utils.untar("tests/resources/file.tar.gz", cleanup=False)
    expected_file_location = os.path.join("tests", "resources", "file", "file.txt")
    assert os.path.exists(expected_file_location)
    os.remove(expected_file_location)