<s> from . . excel_comparsion_test import ExcelComparisonTest <EOL> from ... workbook import Workbook <EOL> class TestCompareXLSXFiles ( ExcelComparisonTest ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> self . maxDiff = None <EOL> filename = '<STR_LIT>' <EOL> test_dir = '<STR_LIT>' <EOL> self . got_filename = test_dir + '<STR_LIT>' + filename <EOL> self . exp_filename = test_dir + '<STR_LIT>' + filename <EOL> self . ignore_files = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> self . ignore_elements = { } <EOL> def test_create_file ( self ) : <EOL> """<STR_LIT>""" <EOL> workbook = Workbook ( self . got_filename ) <EOL> worksheet3 = workbook . add_worksheet ( '<STR_LIT>' ) <EOL> bold = workbook . add_format ( { '<STR_LIT>' : <NUM_LIT:1> } ) <EOL> data = [ <EOL> [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] , <EOL> [ '<STR_LIT>' , <NUM_LIT:50> , <NUM_LIT:20> , <NUM_LIT:15> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] , <EOL> [ '<STR_LIT>' , <NUM_LIT:10> , <NUM_LIT:20> , <NUM_LIT:30> , <NUM_LIT:50> , <NUM_LIT:50> , <NUM_LIT:50> ] , <EOL> [ '<STR_LIT>' , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:50> , <NUM_LIT:15> , <NUM_LIT> , <NUM_LIT:100> ] , <EOL> [ '<STR_LIT>' , <NUM_LIT:15> , <NUM_LIT:15> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:20> , <NUM_LIT:50> ] ] <EOL> worksheet3 . set_row ( <NUM_LIT:0> , None , bold ) <EOL> worksheet3 . set_column ( '<STR_LIT>' , <NUM_LIT:10> , bold ) <EOL> worksheet3 . set_column ( '<STR_LIT>' , <NUM_LIT:6> , None , { '<STR_LIT>' : <NUM_LIT:1> } ) <EOL> worksheet3 . set_column ( '<STR_LIT>' , <NUM_LIT:10> ) <EOL> for row , data_row in enumerate ( data ) : <EOL> worksheet3 . write_row ( row , <NUM_LIT:0> , data_row ) <EOL> worksheet3 . write ( '<STR_LIT>' , '<STR_LIT>' , None , <NUM_LIT:255> ) <EOL> worksheet3 . write ( '<STR_LIT>' , '<STR_LIT>' , None , <NUM_LIT> ) <EOL> worksheet3 . write ( '<STR_LIT>' , '<STR_LIT>' , None , <NUM_LIT> ) <EOL> worksheet3 . write ( '<STR_LIT>' , '<STR_LIT>' , None , <NUM_LIT> ) <EOL> worksheet3 . write ( '<STR_LIT>' , '<STR_LIT>' , bold , <NUM_LIT> ) <EOL> workbook . close ( ) <EOL> self . assertExcelEqual ( ) </s>
