def addValidator(self,fieldName,validator):
        self.__validators[fieldName] = validator
Test Model edit validations
dataset/ETHPy150Open jacek99/corepost/corepost/routing.py/UrlRouter.addValidator--crossover with--dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/tests/test_mongoengine.py/FlaskTestCase.test_model_edit_validation