def test_aware_datetime(settings):
 datetime_object = aware_datetime(2016, 1, 2, 21, 52, 25)
 assert timezone.is_aware(datetime_object)
 assert (datetime_object.tzinfo.zone == settings.TIME_ZONE)

def test_aware_datetime ( settings ) : datetime_object = aware_datetime ( 2016 , 1 , 2 , 21 , 52 , 25 ) assert timezone . is_aware ( datetime_object ) assert ( datetime_object . tzinfo . zone == settings . TIME_ZONE )
tests the creation of a timezone-aware datetime .