'Test writing special numbers.'

def test_write_nan_and_inf_write_number(self):

    workbook = Workbook(self.got_filename, {'nan_inf_to_errors': True})
    worksheet = workbook.add_worksheet()
    worksheet.write_number(0, 0, float('nan'))
    worksheet.write_number(1, 0, float('inf'))
    worksheet.write_number(2, 0, float('-inf'))
    workbook.close()
    self.assertExcelEqual()
