def METHOD_NAME(self):
    test_hash = {
        "errors": [{"attribute": "one", "code": 1, "message": "is too long"}],
        "nested": {
            "errors": [{"attribute": "two", "code": 2, "message": "contains invalid chars"}],
            "nested_again": {
                "errors": [
                    {"attribute": "three", "code": 3, "message": "super nested"},
                    {"attribute": "four", "code": 4, "message": "super nested 2"}
                ]
            }
        }
    }
    validation_error_collection = ValidationErrorCollection(test_hash)
    self.assertEqual([1], [error.code for error in validation_error_collection.errors])
    self.assertEqual([2], [error.code for error in validation_error_collection.for_object("nested").errors])
    self.assertEqual([3, 4], [error.code for error in validation_error_collection.for_object("nested").for_object("nested_again").errors])