def METHOD_NAME(self):
    test_hash = {"errors": [{"attribute": "some model attribute", "code": 1, "message": "bad juju"}]}
    errors = ValidationErrorCollection(test_hash)
    error = errors[0]
    self.assertEqual("some model attribute", error.attribute)
    self.assertEqual(1, error.code)
    self.assertEqual("bad juju", error.message)