

def test_is_instance_of_failure(self):
    try:
        assert_that('foo').is_instance_of(int)
        fail('should have raised error')
    except AssertionError as ex:
        assert_that(str(self)).is_equal_to('Expected <foo:str> to be instance of class <int>, but was not.')

dataset/ETHPy150Open ActivisionGameScience/assertpy/tests/test_type.py TestType.test_is_instance_of_failure/VarMisuse@41/63 `ex`->`self`