ó
[³XMc           @   sè   d  Z  d d l m Z d d l m Z d d l m Z m Z m Z m	 Z	 d e
 f d „  ƒ  YZ d e f d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d e
 f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ e d ƒ Z e d ƒ Z d S(   sM   
Fake client and server endpoint string parser plugins for testing purposes.
iÿÿÿÿ(   t
   implements(   t   IPlugin(   t   IStreamClientEndpointt   IStreamServerEndpointt!   IStreamClientEndpointStringParsert!   IStreamServerEndpointStringParsert
   PluginBasec           B   s   e  Z e e ƒ d  „  Z RS(   c         C   s   | |  _  d  S(   N(   t   prefix(   t   selft   pfx(    (    sF   /usr/lib/python2.7/dist-packages/twisted/internet/test/fakeendpoint.pyt   __init__   s    (   t   __name__t
   __module__R    R   R
   (    (    (    sF   /usr/lib/python2.7/dist-packages/twisted/internet/test/fakeendpoint.pyR      s   
t   FakeClientParserc           B   s   e  Z e e ƒ d  „  Z RS(   c         O   s   t  |  | | ƒ S(   N(   t   StreamClient(   R   t   at   kw(    (    sF   /usr/lib/python2.7/dist-packages/twisted/internet/test/fakeendpoint.pyt   parseStreamClient   s    (   R   R   R    R   R   (    (    (    sF   /usr/lib/python2.7/dist-packages/twisted/internet/test/fakeendpoint.pyR      s   
t
   FakeParserc           B   s   e  Z e e ƒ d  „  Z RS(   c         O   s   t  |  | | ƒ S(   N(   t   StreamServer(   R   R   R   (    (    sF   /usr/lib/python2.7/dist-packages/twisted/internet/test/fakeendpoint.pyt   parseStreamServer%   s    (   R   R   R    R   R   (    (    (    sF   /usr/lib/python2.7/dist-packages/twisted/internet/test/fakeendpoint.pyR   !   s   
t   EndpointBasec           B   s   e  Z d  „  Z RS(   c         C   s   | |  _  | |  _ | |  _ d  S(   N(   t   parsert   argst   kwargs(   R   R   R   R   (    (    sF   /usr/lib/python2.7/dist-packages/twisted/internet/test/fakeendpoint.pyR
   ,   s    		(   R   R   R
   (    (    (    sF   /usr/lib/python2.7/dist-packages/twisted/internet/test/fakeendpoint.pyR   *   s   R   c           B   s   e  Z e e ƒ RS(    (   R   R   R    R   (    (    (    sF   /usr/lib/python2.7/dist-packages/twisted/internet/test/fakeendpoint.pyR   3   s   R   c           B   s   e  Z e e ƒ RS(    (   R   R   R    R   (    (    (    sF   /usr/lib/python2.7/dist-packages/twisted/internet/test/fakeendpoint.pyR   9   s   t   faket   cfakeN(   t   __doc__t   zope.interface.declarationsR    t   twisted.pluginR   t   twisted.internet.interfacesR   R   R   R   t   objectR   R   R   R   R   R   R   t
   fakeClient(    (    (    sF   /usr/lib/python2.7/dist-packages/twisted/internet/test/fakeendpoint.pyt   <module>   s   "			