def test_hyperlink_formating_implicit(self):

        workbook = Workbook(self.got_filename)

        # Simulate custom colour for testing.
        workbook.custom_colors = ['FF0000FF']

        worksheet = workbook.add_worksheet()
        format1 = None
        format2 = workbook.add_format({'color': 'red', 'underline': 1})

        worksheet.write_url('A1', 'http://www.python.org/1', format1)
        worksheet.write_url('A2', 'http://www.python.org/2', format2)

        workbook.close()

        self.assertExcelEqual()
Test the creation of a simple XlsxWriter file with hyperlinks. This example has link formatting.
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/comparison/test_hyperlink20.py/TestCompareXLSXFiles.test_hyperlink_formating_implicit