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"}]
        }
    }
    self.assertEqual(2, ValidationErrorCollection(test_hash).deep_size)