def test_is_type_of_subclass_failure(self):
        try:
            assert_that(Bar()).is_type_of(Foo)
            fail('should have raised error')
        except __HOLE__ as ex:
            assert_that(str(ex)).starts_with('Expected <')
            assert_that(str(ex)).ends_with(':Bar> to be of type <Foo>, but was not.')
dataset/ETHPy150Open ActivisionGameScience/assertpy/tests/test_type.py/TestType.test_is_type_of_subclass_failure