'Test that with whitespace_split, behaviour is as expected'

def testPunctuationWithWhitespaceSplit(self):

    s = shlex.shlex('a        &&    b        ||        c', punctuation_chars='&')
    self.assertEqual(list(s), ['a', '&&', 'b', '|', '|', 'c'])
    s = shlex.shlex('a        &&    b        ||        c', punctuation_chars='&')
    s.whitespace_split = True
    self.assertEqual(list(s), ['a', '&&', 'b', '||', 'c'])
