def test_as_utc_with_naive_object(self):
        utcnow = datetime.utcnow()

        self.assertEqual(utcnow,
                         dt_util.as_utc(utcnow).replace(tzinfo=None))
Test the now method.
dataset/ETHPy150Open home-assistant/home-assistant/tests/util/test_dt.py/TestDateUtil.test_as_utc_with_naive_object