def __eq__(self, other):
        equal = True
        for key, value in self._volume_attributes.items():
            other_value = getattr(other, key, None)
            if value is not None:
                if value != other_value:
                    equal = False
            if other_value is not None:
                if value != other_value:
                    equal = False
        return equal
Compare set attributes on this stub to a boto3 ``Volume``.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/functional/test_ebs.py/VolumeStub.__eq__