#NEWLINE# def testCanInstantiate( self ) : #NEWLINE# #INDENT# scanner = Scanner ( 'substitute' ) #NEWLINE# tokens = list ( scanner . scan ( ) ) #NEWLINE# self . assertEqual ( [ TokenCommandSubstitute ( params = None ) , TokenEof ( ) ] , scanner )