def test_excute_type_checker(self):
        """test for excute"""
        
        task_name = "test1"
        checker = "col_checker_type.ColTypeChecker"
        args = [u"int"]
        field_args = [["0", None, None]]
        fields = FieldList(assemble_field_list(field_args))
        table_checker = TableCheckerSubTask(task_name, checker, args, fields) 
        # 1. check for empty pm
        p_manager = ProcesserManager()
        self.assertRaises(ProcesserManagerLocateError, table_checker.excute, p_manager, [])
        
        cols = ["13"]
        self.assertTrue(table_checker.excute(self._p_m, cols))
        cols = ["dsj13"]
        self.assertFalse(table_checker.excute(self._p_m, cols))
        
        field_args = [["0", "preprocess_trim.PreprocessTrim", None]]
        fields = FieldList(assemble_field_list(field_args))
        table_checker = TableCheckerSubTask(task_name, checker, args, fields) 
        cols = ["13"]
        self.assertTrue(table_checker.excute(self._p_m, cols))
        cols = ['  13  "']
        self.assertTrue(table_checker.excute(self._p_m, cols))
        cols = ['"13df"']
        self.assertFalse(table_checker.excute(self._p_m, cols))

        args = [u"int", u"float"]
        table_checker = TableCheckerSubTask(task_name, checker, args, fields) 
        cols = ['"13.3"']
        self.assertTrue(table_checker.excute(self._p_m, cols))
    def test_excute_time_checker(self):
        """ test for excute time checker """

        task_name = "test2"
        checker = "col_checker_time.ColTimeChecker"
        
        args = [u"%Y%m%d"]
        field_args = [["0", None, None]]
        fields = FieldList(assemble_field_list(field_args))
        table_checker = TableCheckerSubTask(task_name, checker, args, fields) 
        cols = ["20150302"]
        self.assertTrue(table_checker.excute(self._p_m, cols))
        cols = ["dsj13"]
        self.assertFalse(table_checker.excute(self._p_m, cols))
        
        args = [u"%Y-%m-%d %H:%M:%S"]
        field_args = [["0", "preprocess_time.PreprocessTime", [u"%Y-%m-%d"]]]
        fields = FieldList(assemble_field_list(field_args))
        table_checker = TableCheckerSubTask(task_name, checker, args, fields) 
        cols = ["2015-03-02"]
        self.assertTrue(table_checker.excute(self._p_m, cols))
        cols = ["20150302"]
        self.assertFalse(table_checker.excute(self._p_m, cols))