code: def testAttachBufferReadonly(self):
      buf = MPI.buffer(b"abc")
      self.assertRaises(BufferError, MPI.Attach_buffer, buf)
  
file_path: mpi4py/test/test_buffer.py
imports: from mpi4py import MPI
  import mpiunittest
label_desc: Use image node_id 15 for calling the TestBuffer obj's underlying member method code with example usage: obj.testAttachBufferReadonly() without return types