def test_dynamic_assertion_failure(self):
        try:
            assert_that(self.fred).has_first_name('Joe')
            fail('should have raised error')
        except __HOLE__ as ex:
            assert_that(str(ex)).is_equal_to('Expected <Fred> to be equal to <Joe>, but was not.')
dataset/ETHPy150Open ActivisionGameScience/assertpy/tests/test_dyn.py/TestDyn.test_dynamic_assertion_failure