'Test handling of syntax splitting of >'

def testSyntaxSplitRedirect(self):

    for delimiter in ('<', '|'):
        src = [('echo    hi    %s    out' % delimiter), ('echo    hi%s    out' % delimiter), ('echo    hi%sout' % delimiter)]
        ref = ['echo', 'hi', delimiter, 'out']
        for ss in src:
            s = shlex.shlex(ss, punctuation_chars=True)
            result = list(s)
            self.assertEqual(ref, result, ("While    splitting    '%s'" % ss))
