#NEWLINE# def test_compile20( self ) : #NEWLINE# #INDENT# input_str = '(hola   | salut)    (hello| goodbye) <0-2>  ' #NEWLINE# r = ruleparser . Rule ( '' ) #NEWLINE# self . assertEqual ( r . convert_to_regex_pattern ( input_str ) , '(hola |salut )(hello |goodbye ){0,2}' )