def METHOD_NAME(self):
    pb = PickleBuffer(b"foo")
    pb.release()
    with self.assertRaises(ValueError) as raises:
        memoryview(pb)
    self.assertIn("operation forbidden on released PickleBuffer object",
                  str(raises.exception))
    # Idempotency
    pb.release()