File: //lib/python3/dist-packages/twisted/spread/test/__pycache__/test_pbfailure.cpython-310.pyc
o
�b; � @ sj d Z ddlmZ ddlmZmZ ddlmZ ddlm Z ddl
mZmZm
Z
ddlmZ G dd � d e�ZG d
d� de�ZG dd
� d
e
j�ZG dd� de
j�ZG dd� deje
je
j�ZG dd� de
je
j�Ze
�ee� e
�ee� e
j�e� G dd� de
j�ZG dd� de
j�Z G dd� dej!�Z"G dd� de"�Z#G dd� de#�Z$G dd� d�Z%G d d!� d!ej!�Z&d"S )#z!
Tests for error handling in PB.
� )�StringIO)�defer�reactor)�log)�qual)�flavors�jelly�pb)�unittestc @ � e Zd ZdZdS )�AsynchronousExceptionz�
Helper used to test remote methods which return Deferreds which fail with
exceptions which are not L{pb.Error} subclasses.
N��__name__�
__module__�__qualname__�__doc__� r r �D/usr/lib/python3/dist-packages/twisted/spread/test/test_pbfailure.pyr � r c @ r )�SynchronousExceptionzm
Helper used to test remote methods which raise exceptions which are not
L{pb.Error} subclasses.
Nr
r r r r r r r c @ r )�AsynchronousErrorz�
Helper used to test remote methods which return Deferreds which fail with
exceptions which are L{pb.Error} subclasses.
Nr
r r r r r ! r r c @ r )�SynchronousErrorzi
Helper used to test remote methods which raise exceptions which are
L{pb.Error} subclasses.
Nr
r r r r r ( r r c @ � e Zd ZdS )�
JellyErrorN�r r r r r r r r / � r c @ r )�
SecurityErrorNr r r r r r 3 r r c @ sh e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dd� Z
dd� Zddd�Zddd�Z
dS )�
SimpleRootc C � t �td��S )zD
Fail asynchronously with a non-pb.Error exception.
zremote asynchronous exception)r �failr ��selfr r r �remote_asynchronousException>