def test_convert_date_time_date(self):

        for excel_date in self.excel_dates:
            date_str = excel_date[0].rstrip('T')
            (year, month, day) = date_str.split('-')

            test_date = datetime.date(int(year), int(month), int(day))

            got = self.worksheet._convert_date_time(test_date)
            exp = excel_date[1]

            self.assertEqual(got, exp)
Test the _convert_date_time() method with date objects.
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/worksheet/test_date_time_02.py/TestConvertDateTime.test_convert_date_time_date