'Test the creation of a simple XlsxWriter file with defined names.'

def test_create_file(self):

    workbook = Workbook(self.got_filename)
    worksheet = workbook.add_worksheet()
    workbook.define_name(u'\\__', u'=Sheet1!$A$1')
    workbook.define_name(u'a3f6', u'=Sheet1!$A$2')
    workbook.define_name(u'afoo.bar', u'=Sheet1!$A$3')
    workbook.define_name(u'\xe9tude', u'=Sheet1!$A$4')
    workbook.define_name(u'e\xe9sum\xe9', u'=Sheet1!$A$5')
    workbook.define_name(u'b', u'=Sheet1!$A$6')
    import warnings
    warnings.filterwarnings(u'ignore')
    workbook.define_name(u'.abc', u'=Sheet1!$B$1')
    workbook.define_name(u'GFG$', u'=Sheet1!$B$1')
    workbook.define_name(u'A1', u'=Sheet1!$B$1')
    workbook.define_name(u'XFD1048576', u'=Sheet1!$B$1')
    workbook.define_name(u'1A', u'=Sheet1!$B$1')
    workbook.define_name(u'A    A', u'=Sheet1!$B$1')
    workbook.define_name(u'c', u'=Sheet1!$B$1')
    workbook.define_name(u'r', u'=Sheet1!$B$1')
    workbook.define_name(u'C', u'=Sheet1!$B$1')
    workbook.define_name(u'R', u'=Sheet1!$B$1')
    workbook.define_name(u'R1', u'=Sheet1!$B$1')
    workbook.define_name(u'C1', u'=Sheet1!$B$1')
    workbook.define_name(u'R1C1', u'=Sheet1!$B$1')
    workbook.define_name(u'R13C99', u'=Sheet1!$B$1')
    warnings.resetwarnings()
    workbook.close()
    self.assertExcelEqual()
