#NEWLINE# def testInlineAfterSeparateLine( self ) : #NEWLINE# #INDENT# code = textwrap . dedent ( '\n      bar = 1\n      # line comment\n      foo = 1 # inline comment\n      ' ) #NEWLINE# tree = pytree_utils . ParseCodeToTree ( code ) #NEWLINE# comment_splicer . SpliceComments ( tree ) #NEWLINE# sep_comment_node = tree . children [ 1 ] #NEWLINE# self . _AssertNodeIsComment ( sep_comment_node , '# line comment' ) #NEWLINE# expr = tree . children [ 2 ] . children [ 0 ] #NEWLINE# inline_comment_node = expr . children [ ( - 1 ) ] #NEWLINE# self . _AssertNodeIsComment ( inline_comment_node , '# inline comment' )