def assertDateTimeAlmostEqual(self, a, b, delta, msg=None):
        """Assert that two datetime objects are within `range` (a timedelta).
        """
        diff = abs(a - b)
        assert diff < abs(delta), msg or '%s ~= %s' % (a, b)
dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_models.py/SaveDateTestCase.assertDateTimeAlmostEqual/original