#NEWLINE# def test_total_row_with_expanded_column( self ) : #NEWLINE# #INDENT# report_config = self . _create_report ( aggregation_columns = [ 'indicator_col_id_first_name' ] , columns = [ { #NEWLINE# #INDENT# 'type' : 'field' , #NEWLINE# 'display' : 'sum_report_column_display_number' , #NEWLINE# 'field' : 'indicator_col_id_number' , #NEWLINE# 'column_id' : 'sum_report_column_display_number' , #NEWLINE# 'aggregation' : 'sum' , #NEWLINE# 'calculate_total' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'type' : 'expanded' , #NEWLINE# 'display' : 'report_column_display_first_name' , #NEWLINE# 'field' : 'indicator_col_id_first_name' , #NEWLINE# 'column_id' : 'report_column_col_id_first_name' , #NEWLINE# 'calculate_total' : True , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'type' : 'field' , #NEWLINE# 'display' : 'min_report_column_display_number' , #NEWLINE# 'field' : 'indicator_col_id_number' , #NEWLINE# 'column_id' : 'min_report_column_display_number' , #NEWLINE# 'aggregation' : 'min' , #NEWLINE# 'calculate_total' : True , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# view = self . _create_view ( report_config ) #NEWLINE# self . assertEqual ( report_config . export_table , [ [ 'foo' , [ [ 'sum_report_column_display_number' , 'report_column_display_first_name-Ada' , 'report_column_display_first_name-Alan' , 'min_report_column_display_number' ] , [ 3 , 1 , 0 , 3 ] , [ 6 , 0 , 2 , 2 ] , [ 9 , 1 , 2 , 5 ] ] ] ] )