#NEWLINE# def testCanScanSubstituteParamaterWithRange( self ) : #NEWLINE# #INDENT# scanner = Scanner ( '%substitute:foo:bar: 10' ) #NEWLINE# tokens = list ( scanner . scan ( ) ) #NEWLINE# params = { #NEWLINE# #INDENT# 'search_term' : 'foo' , #NEWLINE# 'replacement' : 'bar' , #NEWLINE# 'flags' : [ ] , #NEWLINE# 'count' : 10 , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( [ TokenPercent ( ) , TokenCommandSubstitute ( params ) , TokenEof ( ) ] , tokens )