docstr: Test handling of syntax splitting with custom chars
docstr_tok: ["Test","handling","of","syntax","splitting","with","custom","chars"]
code: def testSyntaxSplitCustom(self):
      """Test handling of syntax splitting with custom chars"""
      ss = "~/a&&b-c --color=auto||d *.py?"
      ref = ["~/a", "&", "&", "b-c", "--color=auto", "||", "d", "*.py?"]
      s = shlex.shlex(ss, punctuation_chars="|")
      result = list(s)
      self.assertEqual(
          ref, result, "While splitting '%s' [ws=False]" % ss
      )
      ref = ["~/a&&b-c", "--color=auto", "||", "d", "*.py?"]
      s = shlex.shlex(ss, punctuation_chars="|")
      s.whitespace_split = True
      result = list(s)
      self.assertEqual(
          ref, result, "While splitting '%s' [ws=True]" % ss
      )
  
imports: import io
  import itertools
  import shlex
  import string
  import unittest
label_desc: Use image node_id 11 for calling the ShlexTest obj's underlying member method code with example usage: obj.testSyntaxSplitCustom() without return types