def METHOD_NAME(self):
    try:
        1/0
    except Exception:
        try:
            raise ValueError
        except Exception:
            try:
                raise RuntimeError('last error')
            except Exception as err:
                assert_equal(ErrorDetails(err).traceback, format_traceback())