def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def resource_setup(cls):
        super(VolumesActionsTest, cls).resource_setup()

        # Create a test shared volume for attach/detach tests
        cls.volume = cls.create_volume()