def test_matches_failure(self):
        try:
            assert_that('fred').matches('\d+')
            fail('should have raised error')
        except __HOLE__ as ex:
            assert_that(str(ex)).is_equal_to('Expected <fred> to match pattern <\d+>, but did not.')
dataset/ETHPy150Open ActivisionGameScience/assertpy/tests/test_string.py/TestString.test_matches_failure