#NEWLINE# @ skipUnlessDBFeature ( 'supports_microsecond_precision' ) #NEWLINE# def test_datetimes_save_completely( self ) : #NEWLINE# #INDENT# dat = datetime . date ( 2014 , 3 , 12 ) #NEWLINE# datetim = datetime . datetime ( 2014 , 3 , 12 , 21 , 22 , 23 , 240000 ) #NEWLINE# tim = datetime . time ( 21 , 22 , 23 , 240000 ) #NEWLINE# DateTimeModel . objects . create ( d = dat , dt = datetim , t = tim ) #NEWLINE# obj = DateTimeModel . objects . first ( ) #NEWLINE# self . assertTrue ( obj ) #NEWLINE# self . assertEqual ( obj . d , dat ) #NEWLINE# self . assertEqual ( obj . dt , datetim ) #NEWLINE# self . assertEqual ( obj . t , tim )