#NEWLINE# def test_convert_date_time_date( self ) : #NEWLINE# #INDENT# 'Test the _convert_date_time() method with date objects.' #NEWLINE# for excel_date in self . excel_dates : #NEWLINE# #INDENT# date_str = excel_date [ 0 ] . rstrip ( 'T' ) #NEWLINE# ( year , month , day ) = date_str . split ( '-' ) #NEWLINE# test_date = datetime . date ( int ( year ) , int ( month ) , int ( day ) ) #NEWLINE# got = self . worksheet . _convert_date_time ( test_date ) #NEWLINE# exp = excel_date [ 1 ] #NEWLINE# self . assertEqual ( got , exp )