def test_custom_error_message(self):
        try:
            assert_that(1+2).is_equal_to(2)
            fail('should have raised error')
        except AssertionError as e:
            assert_that(str(e)).is_equal_to('Expected <3> to be equal to <2>, but was not.')

        try:
            assert_that(1+2).described_as('adding stuff').is_equal_to(2)
            fail('should have raised error')
        except __HOLE__ as e:
            assert_that(str(e)).is_equal_to('[adding stuff] Expected <3> to be equal to <2>, but was not.')
dataset/ETHPy150Open ActivisionGameScience/assertpy/tests/test_readme.py/TestReadme.test_custom_error_message