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
Asserts that the specified JSON dictionary is a valid instance
dataset/ETHPy150Open ga4gh/server/tests/datadriven/__init__.py/DataDrivenTest.assertValid