#NEWLINE# def test_it_creates_left_delimiter_tokens_with_before_after_rights( self ) : #NEWLINE# #INDENT# ( before , content ) = ( mock . Mock ( ) , mock . Mock ( ) ) #NEWLINE# parsed = iter ( [ before , '<' , content , '>' , before . another , '<' ] ) #NEWLINE# tokens = condent . tokenize ( parsed , self . left_delims , self . right_delims ) #NEWLINE# self . assertEqual ( list ( tokens ) , [ condent . LeftDelimiter ( before = before , delimiter = '<' ) , condent . NonDelimiter ( content = content ) , condent . RightDelimiter ( delimiter = '>' ) , condent . LeftDelimiter ( before = before . another , delimiter = '<' ) ] )