def METHOD_NAME(self):
    pb = PickleBuffer(b"foo")
    self.assertEqual(b"foo", bytes(pb))
    with memoryview(pb) as m:
        self.assertTrue(m.readonly)
    pb = PickleBuffer(bytearray(b"foo"))
    self.assertEqual(b"foo", bytes(pb))
    with memoryview(pb) as m:
        self.assertFalse(m.readonly)
        m[0] = 48
    self.assertEqual(b"0oo", bytes(pb))