
    Cad	                     F    d Z ddlZddlmZ  G d dej                        Zy)z?TestExtensionManager

Extension manager used only for testing.
    N)	extensionc                   2     e Zd ZdZdddi f fd	Zd Z xZS )TestExtensionManagera3  ExtensionManager that is explicitly initialized for tests.

    .. deprecated:: 0.13

       Use the :func:`make_test_instance` class method of the class
       being replaced by the test instance instead of using this class
       directly.

    :param extensions: Pre-configured Extension instances to use
                       instead of loading them from entry points.
    :type extensions: list of :class:`~stevedore.extension.Extension`
    :param namespace: The namespace for the entry points.
    :type namespace: str
    :param invoke_on_load: Boolean controlling whether to invoke the
        object returned by the entry point after the driver is loaded.
    :type invoke_on_load: bool
    :param invoke_args: Positional arguments to pass when invoking
        the object returned by the entry point. Only used if invoke_on_load
        is True.
    :type invoke_args: tuple
    :param invoke_kwds: Named arguments to pass when invoking
        the object returned by the entry point. Only used if invoke_on_load
        is True.
    :type invoke_kwds: dict

    testF c                 t    t         t        |   ||||       || _        t	        j
                  dt               y )Nz=TestExtesionManager has been replaced by make_test_instance())superr   __init__
extensionswarningswarnDeprecationWarning)selfr   	namespaceinvoke_on_loadinvoke_argsinvoke_kwds	__class__s         9/usr/lib/python3/dist-packages/stevedore/tests/manager.pyr
   zTestExtensionManager.__init__3   s;    
 	"D293A3>3>	5
 %K	     c                     g S )Nr   )r   argskwdss      r   _load_pluginsz"TestExtensionManager._load_pluginsB   s    	r   )__name__
__module____qualname____doc__r
   r   __classcell__)r   s   @r   r   r      s     8 " %	 r   r   )r   r   	stevedorer   ExtensionManagerr   r   r   r   <module>r"      s$   
  ,955 ,r   