def test_get_process_name(self):
     """ test for get process name"""
     join_checker = "join_checker"
     args = ["1", "2"]
     file1 = "file1"
     file2 = "file2"
     fields1 = [ \
                   ["1", None, ["C1"]],\
                   ["2", None, None],\
                   ["3", "P3", None],\
                   ["4", "P4", ["C4"]],\
                   ["5", "P5", ["C5.1", "C5.2"]]\
                   ]
     fields2 = [["2", None, None]]
     line = assemble_parameter(join_checker, args, file1, file2, fields1, fields2)
     checker = TableJoinCheckerTask(line)
     names = checker.get_process_name()
     real_names1 = [["preprocesser", p[1], p[2]] for p in fields1 if p[1] is not None]
     
     real_names2 = [["preprocesser", p[1], p[2]] for p in fields2 if p[1] is not None]
     real_names=real_names1
     real_names.extend(real_names2)
     real_names.append(["join_checker", "join_checker", args])
     for name in names:
         self.assertIn(name, real_names)
 def test_excute(self):
     """ test for excute """
     join_checker = "join_checker_equal.EqualJoinChecker"
     args = None
     file1 = "./data/table_join_checker/file1.in"
     file2 = "./data/table_join_checker/file2.in"
     fields1 = [["0", None, None]]
     fields2 = [["0", None, None]]
     line = assemble_parameter(join_checker, args, file1, file2, fields1, fields2)
     checker = TableJoinCheckerTask(line)
     checker.excute(self._p_m)
     status_info = checker._status_infos[0]
     self.assertEqual(status_info.check_cnt, 7)
     self.assertEqual(status_info.check_fail_cnt, 3)