'Test the a simple XlsxWriter file with worksheet protection.'

def test_create_file(self):

    workbook = Workbook(self.got_filename)
    worksheet = workbook.add_worksheet()
    unlocked = workbook.add_format({'locked': 0, 'hidden': 0})
    hidden = workbook.add_format({'locked': 0, 'hidden': 1})
    worksheet.protect()
    worksheet.write('A1', 1)
    worksheet.write('A2', 2, unlocked)
    worksheet.write('A3', 3, hidden)
    workbook.close()
    self.assertExcelEqual()
