code: def test_create_string_buffer_value(self):
      buf = create_string_buffer(32)
  
      buf.value = b"Hello, World"
      self.assertEqual(buf.value, b"Hello, World")
  
      self.assertRaises(
          TypeError, setattr, buf, "value", memoryview(b"Hello, World")
      )
      self.assertRaises(
          TypeError, setattr, buf, "value", memoryview(b"abc")
      )
      self.assertRaises(
          ValueError, setattr, buf, "raw", memoryview(b"x" * 100)
      )
  
file_path: cpython/Lib/test/test_ctypes/test_strings.py
imports: import unittest
  from ctypes import create_string_buffer, create_unicode_buffer, sizeof, byref, c_char, c_wchar
label_desc: Use image node_id 2 for calling the StringArrayTestCase obj's underlying member method code with example usage: obj.test_create_string_buffer_value() without return types