'Test dates and times with datetime .date and .time. and write()'

def test_create_file_date_and_time2(self):

    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('A1', date1, format1)
    worksheet.write('A2', date2, format2)
    workbook.close()
    self.assertExcelEqual()
