'Test local time with UTC object.'

def test_as_local_with_utc_object(self):

    dt_util.set_default_time_zone(dt_util.get_time_zone(TEST_TIME_ZONE))
    utcnow = dt_util.utcnow()
    localnow = dt_util.as_local(utcnow)
    self.assertEqual(localnow, utcnow)
    self.assertNotEqual(localnow.tzinfo, utcnow.tzinfo)
