def test_create_file(self):

        workbook = Workbook(self.got_filename)

        worksheet = workbook.add_worksheet()
        chart = workbook.add_chart({'type': 'pie'})

        workbook.custom_colors = ['FFCC0000', 'FF990000']

        data = [2, 5, 4]

        worksheet.write_column('A1', data)

        chart.add_series({
            'values': '=Sheet1!$A$1:$A$3',
            'points': [
                {'fill': {'color': '#FF0000'}},
                {'fill': {'color': '#CC0000'}},
                {'fill': {'color': '#990000'}},
            ],
        })

        worksheet.insert_chart('E9', chart)

        workbook.close()

        self.assertExcelEqual()
Test the creation of an XlsxWriter file with point formatting.
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/comparison/test_chart_points03.py/TestCompareXLSXFiles.test_create_file