def test_utcnow(self):
        self.assertAlmostEqual(
            dt_util.utcnow().replace(tzinfo=None),
            datetime.utcnow(),
            delta=timedelta(seconds=1))
Test the UTC now method.
dataset/ETHPy150Open home-assistant/home-assistant/tests/util/test_dt.py/TestDateUtil.test_utcnow