def test_write_colors1(self):

        self.styles.custom_colors = ['FF26DA55']
        self.styles._write_colors()

        exp = """<colors><mruColors><color rgb="FF26DA55"/></mruColors></colors>"""
        got = self.fh.getvalue()

        self.assertEqual(got, exp)
Test the _write_colors() method
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/styles/test_write_colors.py/TestWriteColors.test_write_colors1