def test_is_length_failure(self):
        try:
            assert_that('foo').is_length(4)
            fail('should have raised error')
        except __HOLE__ as ex:
            assert_that(str(ex)).is_equal_to('Expected <foo> to be of length <4>, but was <3>.')
dataset/ETHPy150Open ActivisionGameScience/assertpy/tests/test_string.py/TestString.test_is_length_failure