combox

split and encrypted files between online file storage providers
git clone git://git.ricketyspace.net/combox.git
Log | Files | Refs

commit a84d58e45c78310dac3125ea65903e6af3d625a6
parent a147529a8799573e2eec81b8512ea56b27ab288f
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Tue, 13 Jan 2015 23:21:20 -0500

tests/file_test.py: uses get_nodedirs function to fetch list of node directories.

Diffstat:
tests/file_test.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/file_test.py b/tests/file_test.py @@ -22,6 +22,7 @@ from glob import glob from nose.tools import * from os import path, remove +from combox.config import get_nodedirs from combox.file import (split_data, glue_data, write_file, read_file, write_shards, read_shards) @@ -66,7 +67,7 @@ and check if they're the same as the orginal file. f_shards = split_data(f_content, SHARDS) f_basename = path.basename(f) - nodes = [path.abspath(node['path']) for node in config['nodes_info'].itervalues()] + nodes = get_nodedirs(config) write_shards(f_shards, nodes, f_basename) # check if the shards have been created.