'Test the creation of a simple XlsxWriter file.'

def test_create_file_with_close(self):

    workbook = Workbook(self.got_filename, {'constant_memory': True, 'in_memory': False})
    for i in range(1, 10):
        worksheet = workbook.add_worksheet()
        worksheet.write('A1', 'Hello    1')
        worksheet.write('A2', 'Hello    2')
        worksheet.write('A4', 'Hello    3')
        worksheet._opt_close()
    workbook.close()
    self.assertExcelEqual()
