def METHOD_NAME(self):
    """Test dates and times with datetime .date and .time."""
    workbook = Workbook(self.got_filename)
    worksheet = workbook.add_worksheet()
    worksheet.set_column("A:A", 12)
    format1 = workbook.add_format({"num_format": 20})
    format2 = workbook.add_format({"num_format": 14})
    date1 = time(12)
    date2 = date(2013, 1, 27)
    worksheet.write_datetime("A1", date1, format1)
    worksheet.write_datetime("A2", date2, format2)
    workbook.close()
    self.assertExcelEqual()