#NEWLINE# def testCanParseRedirection( self ) : #NEWLINE# #INDENT# scanner = Scanner ( 'w>>' ) #NEWLINE# tokens = list ( scanner . scan ( ) ) #NEWLINE# params = { #NEWLINE# #INDENT# '++' : '' , #NEWLINE# 'file_name' : '' , #NEWLINE# '>>' : True , #NEWLINE# 'cmd' : '' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( [ TokenCommandWrite ( self ) , TokenEof ( ) ] , tokens )