#NEWLINE# def test_parse_redir_with_dot( self ) : #NEWLINE# #INDENT# parser = Parser ( ) #NEWLINE# redir_cmd_node = { #NEWLINE# #INDENT# 'type' : NodeType . EXCMD . value , #NEWLINE# 'ea' : { #NEWLINE# #INDENT# 'argpos' : { #NEWLINE# #INDENT# 'col' : 7 , #NEWLINE# 'i' : 6 , #NEWLINE# 'lnum' : 1 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# 'str' : 'redir => s:dict.redir' , #NEWLINE# #UNINDENT# } #NEWLINE# ast = parser . parse_redir ( redir_cmd_node ) #NEWLINE# expected_pos = { #NEWLINE# #INDENT# 'col' : 16 , #NEWLINE# 'i' : 15 , #NEWLINE# 'lnum' : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# expected_node_type = NodeType . DOT #NEWLINE# self . assertEqual ( expected_node_type , NodeType ( ast [ 'type' ] ) ) #NEWLINE# self . assertEqual ( expected_pos , expected_node_type [ 'pos' ] )