def assertValid(self, protocolClass, jsonDict):
        if not protocolClass.validate(jsonDict):
            validator = avrotools.Validator(protocolClass)
            invalidFields = validator.getInvalidFields(jsonDict)
            message = (
                "{} is not a valid instance of {}. "
                "Invalid fields = {}".format(
                    jsonDict, protocolClass, invalidFields))
            assert False, message
Email is sent if a valid email address is provided for password reset when a custom from_email is provided.
dataset/ETHPy150Open ga4gh/server/tests/datadriven/__init__.py/DataDrivenTest.assertValid--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/django/contrib/auth/tests/views.py/PasswordResetTest.test_email_found_custom_from