

def test_exception_handler_v20_unknown_error_to_per_code_exception(self):
    for (status_code, client_exc) in exceptions.HTTP_EXCEPTION_MAP.items():
        error_msg = 'Unknown error'
        error_detail = 'This is detail'
        self._test_exception_handler_v20(client_exc, status_code, ((error_msg + '\n') + error_detail), 'UnknownError', error_msg, error_detail)

dataset/ETHPy150Open openstack/python-group-based-policy-client/gbpclient/tests/unit/test_cli20.py CLITestV20ExceptionHandler.test_exception_handler_v20_unknown_error_to_per_code_exception/original