summaryrefslogtreecommitdiffstats
path: root/tests/silo_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/silo_test.py')
-rw-r--r--tests/silo_test.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/silo_test.py b/tests/silo_test.py
index 174dfd5..66de6ba 100644
--- a/tests/silo_test.py
+++ b/tests/silo_test.py
@@ -106,7 +106,7 @@ class TestSilo(object):
keys = silo.db.db.keys()
node_dicts = ['file_created', 'file_modified', 'file_moved',
- 'file_deleted']
+ 'file_deleted', 'file_moved_info']
for ndict in node_dicts:
assert ndict in keys
@@ -202,6 +202,18 @@ class TestSilo(object):
assert_equal(15, dict_file_deleted[self.LOREM])
+ def test_csilo_node_store_moved_info(self):
+ """Tests node_store_moved_info method in ComboxSilo class.
+ """
+ silo = ComboxSilo(self.config, self.silo_lock)
+
+ src_path = self.LOREM
+ dest_path = self.LOREM_IPSUM
+ silo.node_store_moved_info(src_path, dest_path)
+
+ assert_equal(dest_path, silo.node_get('file_moved_info', src_path))
+
+
def test_csilo_nodeget(self):
"""Tests node_get method in ComboxSilo class
"""