#NEWLINE# def test_pass_in_module_with_metric( self ) : #NEWLINE# #INDENT# monitor_instance = ScalyrLoggingTest . FakeMonitor ( 'testing' ) #NEWLINE# metric_file_path = tempfile . mktemp ( '.log' ) #NEWLINE# monitor_logger = scalyr_logging . getLogger ( 'scalyr_agent.builtin_monitors.foo(1)' ) #NEWLINE# monitor_logger . openMetricLogForMonitor ( metric_file_path , monitor_instance ) #NEWLINE# scalyr_logging . getLogger ( 'scalyr_agent.builtin_monitors.foo' ) . report_values ( { #NEWLINE# #INDENT# 'foo' : 5 , #NEWLINE# #UNINDENT# } , monitor = monitor_instance ) #NEWLINE# self . assertTrue ( self . __log_contains ( 'foo=5' , file_path = metric_file_path ) ) #NEWLINE# self . assertFalse ( self . __log_contains ( 'foo=5' ) ) #NEWLINE# monitor_logger . closeMetricLog ( )