def test_process_input(self): os.system("cp data/test/*.txt %s" % Config.input_path) Worker().process_input() self.assertEqual(len(ls(Config.export_path)), len(ls(Config.input_path)))
def test_synch(self): os.system("cp testdata/synch/*.json %s" % Config.export_path) remote_worker = RemoteWorker(".") remote_worker.synch() self.assertEqual(len(ls(Config.export_path)), len(ls(Config.import_path)))