def test_is_not_same_as_failure():
    for obj in [object(), 1, 'foo', True, None, 123.456]:
        try:
            assert_that(obj).is_not_same_as(obj)
            fail('should have raised error')
        except __HOLE__ as ex:
            assert_that(str(ex)).matches('Expected <.+> to be not identical to <.+>, but was.')
dataset/ETHPy150Open ActivisionGameScience/assertpy/tests/test_same_as.py/test_is_not_same_as_failure