#NEWLINE# def test_dump_ast_node( self ) : #NEWLINE# #INDENT# self . assertEqual ( '(stderr == "")' , sla . dump_ast_node ( ast . parse ( 'stderr == ""' , mode = 'eval' ) ) ) #NEWLINE# self . assertEqual ( '(stderr & ".*")' , sla . dump_ast_node ( ast . parse ( 'stderr & ".*"' , mode = 'eval' ) ) ) #NEWLINE# self . assertEqual ( '(stats.bandwidth.avg > 900)' , sla . dump_ast_node ( ast . parse ( 'stats.bandwidth.avg > 900' , mode = 'eval' ) ) ) #NEWLINE# expr = '(stats.bandwidth.avg > 900 and not stats.ping.max < 0.5 and stats.ping.avg < 0.35)' #NEWLINE# self . assertEqual ( expr , sla . dump_ast_node ( ast . parse ( self , mode = 'eval' ) ) )