def test_as_local_with_naive_object(self):
        now = dt_util.now()
        self.assertAlmostEqual(
            now, dt_util.as_local(datetime.utcnow()),
            delta=timedelta(seconds=1))
Test local time with native object.
dataset/ETHPy150Open home-assistant/home-assistant/tests/util/test_dt.py/TestDateUtil.test_as_local_with_naive_object