def test_write_nan_and_inf_write_as_string(self):

        workbook = Workbook(self.got_filename, {'nan_inf_to_errors': True,
                                                'strings_to_numbers': True})
        worksheet = workbook.add_worksheet()

        worksheet.write(0, 0, 'nan')
        worksheet.write(1, 0, 'inf')
        worksheet.write(2, 0, '-inf')

        workbook.close()

        self.assertExcelEqual()
Test writing special numbers.
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/comparison/test_types07.py/TestCompareXLSXFiles.test_write_nan_and_inf_write_as_string