From a41fc635967f3fbdcdd9acaa6268323e7accb1a5 Mon Sep 17 00:00:00 2001 From: Siddharth Ravikumar Date: Wed, 21 Jan 2015 10:02:17 -0500 Subject: Renamed ComboxEventHandler (class) -> ComboxDirMonitor modified: combox/events.py modified: tests/events_test.py --- tests/events_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/events_test.py') diff --git a/tests/events_test.py b/tests/events_test.py index c53ce1d..26a846d 100644 --- a/tests/events_test.py +++ b/tests/events_test.py @@ -27,7 +27,7 @@ from os import path, remove from shutil import copyfile from watchdog.observers import Observer -from combox.events import ComboxEventHandler +from combox.events import ComboxDirMonitor from combox.config import get_nodedirs from combox.crypto import decrypt_and_glue from combox.file import (relative_path, purge_dir, @@ -121,10 +121,10 @@ def path_deletedp(p, is_dir=False): def test_CEH(): """ - Tests the ComboxEventHandler class. + Tests the ComboxDirMonitor class. """ - event_handler = ComboxEventHandler(config) + event_handler = ComboxDirMonitor(config) observer = Observer() observer.schedule(event_handler, FILES_DIR, recursive=True) observer.start() @@ -132,7 +132,7 @@ def test_CEH(): # Test - new file addition TEST_FILE_COPY_0 = "%s.mutant" % TEST_FILE copyfile(TEST_FILE, TEST_FILE_COPY_0) - ## wait for ComboxEventHandler to split and scatter the file in the + ## wait for ComboxDirMonitor to split and scatter the file in the ## node directories. time.sleep(1) ## check if the shards were created. -- cgit v1.2.3