def test_is_close_to_failure(self):
        try:
            d2 = self.d1 + datetime.timedelta(minutes=5)
            assert_that(self.d1).is_close_to(d2, datetime.timedelta(minutes=1))
            fail('should have raised error')
        except __HOLE__ as ex:
            assert_that(str(ex)).matches('Expected <\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}> to be close to <\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}> within tolerance <\d+:\d{2}:\d{2}>, but was not.')
dataset/ETHPy150Open ActivisionGameScience/assertpy/tests/test_datetime.py/TestDate.test_is_close_to_failure