'Test dates and times.'

def test_create_file(self):

    workbook = Workbook(self.got_filename)
    worksheet = workbook.add_worksheet()
    worksheet.set_column(0, 0, 12)
    format1 = workbook.add_format({'num_format': 20})
    format2 = workbook.add_format({'num_format': 14})
    date1 = datetime.strptime('12:00', '%H:%M')
    date2 = datetime.strptime('2013-01-27', '%Y-%m-%d')
    worksheet.write_datetime(0, 0, date1, format1)
    worksheet.write_datetime(1, 0, date2, format2)
    workbook.close()
    self.assertExcelEqual()
