From f15ce63ba11ad101349ee51a0baa4109400d7329 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Wed, 8 Apr 2015 17:18:33 -0400 Subject: After a file which was created a in a remote computer is reconstructed in this computer, its info is removed from the 'file_created' dictionary in the silo. modified: combox/events.py modified: tests/events_test.py --- tests/events_test.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/events_test.py b/tests/events_test.py index fa0187c..a0001b5 100644 --- a/tests/events_test.py +++ b/tests/events_test.py @@ -274,6 +274,8 @@ class TestEvents(object): assert fmutant_content == read_file(self.TEST_FILE_MUTANT) ## check if the new file's info is in silo assert self.silo.exists(self.TEST_FILE_MUTANT) + assert_equal(None, self.silo.node_get('file_created', + self.TEST_FILE_MUTANT)) self.purge_list.append(self.TEST_FILE_MUTANT) @@ -283,12 +285,15 @@ class TestEvents(object): time.sleep(1) ## check if FOO_DIR is created under the combox directory assert path.isdir(self.FOO_DIR) - + assert_equal(None, self.silo.node_get('file_created', + self.FOO_DIR)) self.BAR_DIR = path.join(self.FOO_DIR, 'bar') mk_nodedir(self.BAR_DIR, self.config) time.sleep(1) ## check if BAR_DIR is created under the combox directory. assert path.isdir(self.BAR_DIR) + assert_equal(None, self.silo.node_get('file_created', + self.BAR_DIR)) self.purge_list.append(self.FOO_DIR) -- cgit v1.2.3