FSWatcher tests
TestRecursiveWatch
setUpClass()
Hook method for setting up class fixture before running tests in the class.
Source code in tests/fsWatcher_tests.py
def setUpClass() :
os.makedirs(os.path.join(cputilsTestDir, 'test01'), exist_ok=True)
os.system("tree "+ cputilsTestDir)
with open(os.path.join(cputilsTestDir, 'test01', 'silly.txt'), 'w') as f :
f.write("This is a test")
loggedMsgs = []
tearDownClass()
Hook method for deconstructing the class fixture after running all tests in the class.
Source code in tests/fsWatcher_tests.py
def tearDownClass() :
shutil.rmtree(cputilsTestDir)