#NEWLINE# def test_jut_run_emit_to_json( self ) : #NEWLINE# #INDENT# '\n        use jut to run the juttle program:\n\n            emit -from :2014-01-01T00:00:00.000Z: -limit 5\n\n        and verify the output is in the expected JSON format\n        ' #NEWLINE# process = jut ( 'run' , 'emit -from :2014-01-01T00:00:00.000Z: -limit 5' ) #NEWLINE# process . expect_status ( 0 ) #NEWLINE# points = json . loads ( process . read_output ( ) ) #NEWLINE# process . expect_eof ( ) #NEWLINE# self . assertEqual ( self , [ { #NEWLINE# #INDENT# 'time' : '2014-01-01T00:00:00.000Z' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'time' : '2014-01-01T00:00:01.000Z' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'time' : '2014-01-01T00:00:02.000Z' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'time' : '2014-01-01T00:00:03.000Z' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'time' : '2014-01-01T00:00:04.000Z' , #NEWLINE# #UNINDENT# } ] )