def test_aware_datetime_explicit_tz():
 new_datetime = aware_datetime(2016, 1, 2, 21, 52, 25, tz=pytz.utc)
 assert timezone.is_aware(new_datetime)
 assert (new_datetime.tzinfo.zone == pytz.utc.zone)

def test_aware_datetime_explicit_tz ( ) : new_datetime = aware_datetime ( 2016 , 1 , 2 , 21 , 52 , 25 , tz = pytz . utc ) assert timezone . is_aware ( new_datetime ) assert ( new_datetime . tzinfo . zone == pytz . utc . zone )
tests the creation of a explicitly provided timezone-aware datetime .