'Test the creation of a outlines in a XlsxWriter file. These tests are
based on the outline programs in the examples directory.'

def test_create_file(self):

    workbook = Workbook(self.got_filename)
    worksheet4 = workbook.add_worksheet('Outline    levels')
    levels = ['Level    1', 'Level    2', 'Level    3', 'Level    4', 'Level    5', 'Level    6', 'Level    7', 'Level    6', 'Level    5', 'Level    4', 'Level    3', 'Level    2', 'Level    1']
    worksheet4.write_column('A1', levels)
    worksheet4.set_row(0, None, None, {'level': 1})
    worksheet4.set_row(1, None, None, {'level': 2})
    worksheet4.set_row(2, None, None, {'level': 3})
    worksheet4.set_row(3, None, None, {'level': 4})
    worksheet4.set_row(4, None, None, {'level': 5})
    worksheet4.set_row(5, None, None, {'level': 6})
    worksheet4.set_row(6, None, None, {'level': 7})
    worksheet4.set_row(7, None, None, {'level': 6})
    worksheet4.set_row(8, None, None, {'level': 5})
    worksheet4.set_row(9, None, None, {'level': 4})
    worksheet4.set_row(10, None, None, {'level': 3})
    worksheet4.set_row(11, None, None, {'level': 2})
    worksheet4.set_row(12, None, None, {'level': 1})
    workbook.close()
    self.assertExcelEqual()
