'Assert that two datetime objects are within `range` (a timedelta).'

def assertDateTimeAlmostEqual(self, a, b, delta, msg=None):

    diff = abs((a - b))
    assert (diff < abs(delta)), (msg or ('%s    ~=    %s' % (a, b)))
