示例#1
0
文件: test.py 项目: bwtaylor/wordfreq
 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)))
示例#2
0
文件: test.py 项目: bwtaylor/wordfreq
 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)))