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)
def validate_function_test_raise_exeption(self): with self.assertRaises(NonCallableParam): Crud.validate_function(3)