summaryrefslogtreecommitdiffstats
path: root/tests/file_test.py
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-03-06 08:32:20 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-03-06 08:32:20 -0500
commit2c7c011d68691ffe3aa7d308479e7204c2727617 (patch)
treedb2bb684809bf27fcb9959caefc4a6b13ac4281b /tests/file_test.py
parent1c494ddad4fbb99ddb94ba54e2e77ae01aceec06 (diff)
modded combox.file.node_path function.
It has a third argument (boolean) which tells whether `cb_path' (the first argument) is a file or not. Updated the test for node_path function + code wherever node_path was used. modified: combox/events.py modified: combox/file.py modified: tests/file_test.py
Diffstat (limited to 'tests/file_test.py')
-rw-r--r--tests/file_test.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/file_test.py b/tests/file_test.py
index 0e19e60..8065ff7 100644
--- a/tests/file_test.py
+++ b/tests/file_test.py
@@ -145,14 +145,16 @@ class TestFile(object):
test_file_shard_0)
assert test_file_shard_0_abspath == node_path(self.TEST_FILE,
- self.config)
+ self.config,
+ isfile=True)
foo_dir = path.join(self.config['combox_dir'], 'foo')
foo_nodedir = path.join(get_nodedirs(self.config)[0],
'foo')
- assert foo_nodedir == node_path(foo_dir, self.config)
+ assert foo_nodedir == node_path(foo_dir, self.config,
+ isfile=False)
def test_rmpath(self):