a *Na@s ddlZddlmZddZdS)N) exceptionscCsjGdddt}t|dd}t|}|Wdn1sH0Yt|jjtjsfJdS)zHMethods decorated with @on_http_error should raise from GitlabHttpError.c@s eZdZdS)z4test_error_raises_from_http_error..TestErrorN)__name__ __module__ __qualname__rru/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/tests/unit/test_exceptions.py TestError srcSs tjdS)N)rGitlabHttpErrorrrrrraise_error_from_http_error szFtest_error_raises_from_http_error..raise_error_from_http_errorN) ExceptionrZ on_http_errorpytestZraises isinstancevalue __cause__r )rr contextrrr!test_error_raises_from_http_errors   $r)r Zgitlabrrrrrrs