Example #1
0
    def validate_function_test(self):
        """Test for the validate function"""
        def callablefunc():
            pass

        self.assertEqual(Crud.validate_function(callablefunc), False)
        self.assertEqual(Crud.validate_function(None), False)
Example #2
0
 def validate_function_test_raise_exeption(self):
     with self.assertRaises(NonCallableParam):
         Crud.validate_function(3)