#NEWLINE# def test_as_local_with_utc_object( self ) : #NEWLINE# #INDENT# 'Test local time with UTC object.' #NEWLINE# dt_util . set_default_time_zone ( dt_util . get_time_zone ( TEST_TIME_ZONE ) ) #NEWLINE# utcnow = dt_util . utcnow ( ) #NEWLINE# localnow = dt_util . as_local ( utcnow ) #NEWLINE# self . assertEqual ( localnow , utcnow ) #NEWLINE# self . assertNotEqual ( localnow . tzinfo , utcnow . tzinfo )