#NEWLINE# @ test . support . run_with_tz ( 'EST+05EDT,M3.2.0,M11.1.0' ) #NEWLINE# def test_localtime_epoch_utc_daylight_true( self ) : #NEWLINE# #INDENT# test . support . patch ( self , time , 'daylight' , True ) #NEWLINE# t0 = datetime . datetime ( 1990 , 1 , 1 , tzinfo = datetime . timezone . utc ) #NEWLINE# t1 = utils . localtime ( t0 ) #NEWLINE# t2 = ( t0 - datetime . timedelta ( hours = 5 ) ) #NEWLINE# t2 = t2 . replace ( tzinfo = datetime . timezone ( datetime . timedelta ( hours = ( - 5 ) ) ) ) #NEWLINE# self . assertEqual ( t1 , t2 )