#NEWLINE# def test__get_exec_table_data_1_row( self ) : #NEWLINE# #INDENT# headers = { #NEWLINE# #INDENT# 'content-length' : '20' , #NEWLINE# 'content-type' : 'text/html' , #NEWLINE# 'date' : 'Tue, 26 Aug 2014 09:27:08 GMT' , #NEWLINE# 'etag' : 'af0983cb8fef30642bae9ba0010e7a77' , #NEWLINE# 'x-chain-total-time' : '3.920' , #NEWLINE# 'x-nexe-cdr-line' : '3.920, 3.913, 0.11 3.37 1025 75943644 2 20 0 0 0 0' , #NEWLINE# 'x-nexe-etag' : 'disabled' , #NEWLINE# 'x-nexe-policy' : 'Policy-0' , #NEWLINE# 'x-nexe-retcode' : '0' , #NEWLINE# 'x-nexe-status' : 'ok' , #NEWLINE# 'x-nexe-system' : 'hello' , #NEWLINE# 'x-nexe-validation' : '0' , #NEWLINE# 'x-timestamp' : '1409045228.85265' , #NEWLINE# 'x-trans-id' : 'tx1d61239ed02a56fbbfe5d-0053fc52e9' , #NEWLINE# 'x-zerovm-device' : 'stdout' , #NEWLINE# #UNINDENT# } #NEWLINE# expected_total_t = '3.920' #NEWLINE# expected_table = [ [ 'hello' , 'ok' , '0' , '3.913' , '0.11' , '3.37' , '1025' , '75943644' , '2' , '20' , '0' , '0' , '0' , '0' ] ] #NEWLINE# ( actual_total_t , actual_table ) = zpm . _get_exec_table_data ( self ) #NEWLINE# assert ( actual_total_t == expected_total_t ) #NEWLINE# assert ( actual_table == expected_table )