code: def test_basic_wstrings(self):
      cs = create_unicode_buffer("abcdef")
      self.assertEqual(cs.value, "abcdef")
  
      # value can be changed
      cs.value = "abc"
      self.assertEqual(cs.value, "abc")
  
      # string is truncated at NUL character
      cs.value = "def\0z"
      self.assertEqual(cs.value, "def")
  
      self.assertEqual(create_unicode_buffer("abc\0def").value, "abc")
  
      # created with an empty string
      cs = create_unicode_buffer(3)
      self.assertEqual(cs.value, "")
  
      cs.value = "abc"
      self.assertEqual(cs.value, "abc")
  
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 WStringTestCase obj's underlying member method code with example usage: obj.test_basic_wstrings() without return types