def METHOD_NAME(self):
    validator = JsonSchemaDataValidator(schema=SCHEMA)
    with open(PERSON_1) as file:
        obj = yaml.safe_load(file)
    result = validator.validate_dict(obj, "Person")
    self.assertIsNone(result)
    with open(PERSON_2) as file:
        obj = yaml.safe_load(file)
    with self.assertRaises(JsonSchemaDataValidatorError) as ctx:
        validator.validate_dict(obj, "Person")
    with open(PERSON_INVALID_1) as file:
        obj = yaml.safe_load(file)
    with self.assertRaises(JsonSchemaDataValidatorError) as ctx:
        validator.validate_dict(obj, "Person")
    messages = ctx.exception.validation_messages
    self.assertEqual(len(messages), 1)
    self.assertIn("name", messages[0])