a
    ¦ˆc"-  ã                   @   sv   d Z ddlZddlZddlmZ ddlmZmZmZm	Z	m
Z
mZmZ ddlmZmZ ddlmZ G dd„ dejƒZdS )	ú8 Tests to help find out if we can do type-safe casting. é    N)Úreset_global_adaptation_manager)ÚAdapterÚ	HasTraitsÚInstanceÚIntÚ	InterfaceÚprovidesÚregister_factory)ÚInterfaceErrorÚcheck_implements)Ú
has_traitsc                   @   s¨   e Zd ZdZdd„ Zdd„ Zdd„ Zdd	„ Zd
d„ Zdd„ Z	dd„ Z
dd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zd d!„ Zd"d#„ Zd$d%„ Zd&d'„ Zd(S ))ÚInterfaceCheckerTestCaser   c                 C   s   t j| _dt _tƒ  dS )z> Prepares the test fixture before each test method is called. r   N)r   ÚCHECK_INTERFACESÚ_old_check_interfacesr   ©Úself© r   úf/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/traits/tests/test_interface_checker.pyÚsetUp,   s    zInterfaceCheckerTestCase.setUpc                 C   s   | j t_d S ©N)r   r   r   r   r   r   r   ÚtearDown5   s    z!InterfaceCheckerTestCase.tearDownc                 C   s8   G dd„ dt ƒ}t|ƒG dd„ dtƒƒ}t||dƒ dS )z non-traits class c                   @   s   e Zd Zdd„ ZdS )z<InterfaceCheckerTestCase.test_non_traits_class.<locals>.IFooc                 S   s   d S r   r   r   r   r   r   Úfoo@   s    z@InterfaceCheckerTestCase.test_non_traits_class.<locals>.IFoo.fooN©Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   ÚIFoo?   s   r   c                   @   s   e Zd Zdd„ ZdS )z;InterfaceCheckerTestCase.test_non_traits_class.<locals>.Fooc                 S   s   d S r   r   r   r   r   r   r   F   s    z?InterfaceCheckerTestCase.test_non_traits_class.<locals>.Foo.fooNr   r   r   r   r   ÚFooD   s   r   é   N)r   r	   Úobjectr   ©r   r   r   r   r   r   Útest_non_traits_class<   s    z.InterfaceCheckerTestCase.test_non_traits_classc                 C   s8   G dd„ dt ƒ}t|ƒG dd„ dtƒƒ}t||dƒ dS )z single interface c                   @   s   e Zd ZeZdS )z<InterfaceCheckerTestCase.test_single_interface.<locals>.IFooN©r   r   r   r   Úxr   r   r   r   r   P   s   r   c                   @   s   e Zd ZeZdS )z;InterfaceCheckerTestCase.test_single_interface.<locals>.FooNr#   r   r   r   r   r   T   s   r   r   N©r   r	   r   r   r!   r   r   r   Útest_single_interfaceM   s    z.InterfaceCheckerTestCase.test_single_interfacec                 C   s>   G dd„ dt ƒ}t|ƒG dd„ dtƒƒ}|  tt||d¡ dS )z0 single interface with invalid method signature c                   @   s   e Zd Zdd„ ZdS )zZInterfaceCheckerTestCase.test_single_interface_with_invalid_method_signature.<locals>.IFooc                 S   s   d S r   r   r   r   r   r   r   a   s    z^InterfaceCheckerTestCase.test_single_interface_with_invalid_method_signature.<locals>.IFoo.fooNr   r   r   r   r   r   `   s   r   c                   @   s   e Zd Zdd„ ZdS )zYInterfaceCheckerTestCase.test_single_interface_with_invalid_method_signature.<locals>.Fooc                 S   s   d S r   r   ©r   r$   r   r   r   r   h   s    z]InterfaceCheckerTestCase.test_single_interface_with_invalid_method_signature.<locals>.Foo.fooNr   r   r   r   r   r   e   s   r   r   N©r   r	   r   ÚassertRaisesr   r   r!   r   r   r   Ú3test_single_interface_with_invalid_method_signature]   s    zLInterfaceCheckerTestCase.test_single_interface_with_invalid_method_signaturec                 C   s>   G dd„ dt ƒ}t|ƒG dd„ dtƒƒ}|  tt||d¡ dS )z% single interface with missing trait c                   @   s   e Zd ZeZdS )zOInterfaceCheckerTestCase.test_single_interface_with_missing_trait.<locals>.IFooNr#   r   r   r   r   r   p   s   r   c                   @   s   e Zd ZdS )zNInterfaceCheckerTestCase.test_single_interface_with_missing_trait.<locals>.FooN©r   r   r   r   r   r   r   r   t   s   r   r   Nr(   r!   r   r   r   Ú(test_single_interface_with_missing_traitm   s    zAInterfaceCheckerTestCase.test_single_interface_with_missing_traitc                 C   s>   G dd„ dt ƒ}t|ƒG dd„ dtƒƒ}|  tt||d¡ dS )z& single interface with missing method c                   @   s   e Zd Zdd„ ZdS )zPInterfaceCheckerTestCase.test_single_interface_with_missing_method.<locals>.IFooc                 S   s   d S r   r   r   r   r   r   Úmethod~   s    zWInterfaceCheckerTestCase.test_single_interface_with_missing_method.<locals>.IFoo.methodN)r   r   r   r-   r   r   r   r   r   }   s   r   c                   @   s   e Zd ZdS )zOInterfaceCheckerTestCase.test_single_interface_with_missing_method.<locals>.FooNr+   r   r   r   r   r   ‚   s   r   r   Nr(   r!   r   r   r   Ú)test_single_interface_with_missing_methodz   s    zBInterfaceCheckerTestCase.test_single_interface_with_missing_methodc                 C   sb   G dd„ dt ƒ}G dd„ dt ƒ}G dd„ dt ƒ}t|||ƒG dd„ dtƒƒ}t||||gd	ƒ d
S )z multiple interfaces c                   @   s   e Zd ZeZdS )z?InterfaceCheckerTestCase.test_multiple_interfaces.<locals>.IFooNr#   r   r   r   r   r   ‹   s   r   c                   @   s   e Zd ZeZdS )z?InterfaceCheckerTestCase.test_multiple_interfaces.<locals>.IBarN©r   r   r   r   Úyr   r   r   r   ÚIBarŽ   s   r1   c                   @   s   e Zd ZeZdS )z?InterfaceCheckerTestCase.test_multiple_interfaces.<locals>.IBazN©r   r   r   r   Úzr   r   r   r   ÚIBaz‘   s   r4   c                   @   s   e Zd ZeZeZeZdS )z>InterfaceCheckerTestCase.test_multiple_interfaces.<locals>.FooN©r   r   r   r   r$   r0   r3   r   r   r   r   r   •   s   r   r   Nr%   ©r   r   r1   r4   r   r   r   r   Útest_multiple_interfacesˆ   s    
z1InterfaceCheckerTestCase.test_multiple_interfacesc                 C   sh   G dd„ dt ƒ}G dd„ dt ƒ}G dd„ dt ƒ}t|||ƒG dd„ dtƒƒ}|  tt||||gd	¡ d
S )z3 multiple interfaces with invalid method signature c                   @   s   e Zd Zdd„ ZdS )z]InterfaceCheckerTestCase.test_multiple_interfaces_with_invalid_method_signature.<locals>.IFooc                 S   s   d S r   r   r   r   r   r   r   £   s    zaInterfaceCheckerTestCase.test_multiple_interfaces_with_invalid_method_signature.<locals>.IFoo.fooNr   r   r   r   r   r   ¢   s   r   c                   @   s   e Zd Zdd„ ZdS )z]InterfaceCheckerTestCase.test_multiple_interfaces_with_invalid_method_signature.<locals>.IBarc                 S   s   d S r   r   r   r   r   r   Úbar§   s    zaInterfaceCheckerTestCase.test_multiple_interfaces_with_invalid_method_signature.<locals>.IBar.barN©r   r   r   r8   r   r   r   r   r1   ¦   s   r1   c                   @   s   e Zd Zdd„ ZdS )z]InterfaceCheckerTestCase.test_multiple_interfaces_with_invalid_method_signature.<locals>.IBazc                 S   s   d S r   r   r   r   r   r   Úbaz«   s    zaInterfaceCheckerTestCase.test_multiple_interfaces_with_invalid_method_signature.<locals>.IBaz.bazN©r   r   r   r:   r   r   r   r   r4   ª   s   r4   c                   @   s$   e Zd Zdd„ Zdd„ Zdd„ ZdS )z\InterfaceCheckerTestCase.test_multiple_interfaces_with_invalid_method_signature.<locals>.Fooc                 S   s   d S r   r   r   r   r   r   r   ±   s    z`InterfaceCheckerTestCase.test_multiple_interfaces_with_invalid_method_signature.<locals>.Foo.fooc                 S   s   d S r   r   r   r   r   r   r8   ´   s    z`InterfaceCheckerTestCase.test_multiple_interfaces_with_invalid_method_signature.<locals>.Foo.barc                 S   s   d S r   r   r'   r   r   r   r:   ¸   s    z`InterfaceCheckerTestCase.test_multiple_interfaces_with_invalid_method_signature.<locals>.Foo.bazN©r   r   r   r   r8   r:   r   r   r   r   r   ¯   s   r   r   Nr(   r6   r   r   r   Ú6test_multiple_interfaces_with_invalid_method_signatureŸ   s    
ÿzOInterfaceCheckerTestCase.test_multiple_interfaces_with_invalid_method_signaturec                 C   sh   G dd„ dt ƒ}G dd„ dt ƒ}G dd„ dt ƒ}t|||ƒG dd„ dtƒƒ}|  tt||||gd	¡ d
S )z( multiple interfaces with missing trait c                   @   s   e Zd ZeZdS )zRInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_trait.<locals>.IFooNr#   r   r   r   r   r   Â   s   r   c                   @   s   e Zd ZeZdS )zRInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_trait.<locals>.IBarNr/   r   r   r   r   r1   Å   s   r1   c                   @   s   e Zd ZeZdS )zRInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_trait.<locals>.IBazNr2   r   r   r   r   r4   È   s   r4   c                   @   s   e Zd ZeZeZdS )zQInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_trait.<locals>.FooN©r   r   r   r   r$   r0   r   r   r   r   r   Ì   s   r   r   Nr(   r6   r   r   r   Ú+test_multiple_interfaces_with_missing_trait¿   s    
ÿzDInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_traitc                 C   sh   G dd„ dt ƒ}G dd„ dt ƒ}G dd„ dt ƒ}t|||ƒG dd„ dtƒƒ}|  tt||||gd	¡ d
S )z) multiple interfaces with missing method c                   @   s   e Zd Zdd„ ZdS )zSInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_method.<locals>.IFooc                 S   s   d S r   r   r   r   r   r   r   Ú   s    zWInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_method.<locals>.IFoo.fooNr   r   r   r   r   r   Ù   s   r   c                   @   s   e Zd Zdd„ ZdS )zSInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_method.<locals>.IBarc                 S   s   d S r   r   r   r   r   r   r8   Þ   s    zWInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_method.<locals>.IBar.barNr9   r   r   r   r   r1   Ý   s   r1   c                   @   s   e Zd Zdd„ ZdS )zSInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_method.<locals>.IBazc                 S   s   d S r   r   r   r   r   r   r:   â   s    zWInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_method.<locals>.IBaz.bazNr;   r   r   r   r   r4   á   s   r4   c                   @   s   e Zd Zdd„ Zdd„ ZdS )zRInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_method.<locals>.Fooc                 S   s   d S r   r   r   r   r   r   r   è   s    zVInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_method.<locals>.Foo.fooc                 S   s   d S r   r   r   r   r   r   r8   ë   s    zVInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_method.<locals>.Foo.barN©r   r   r   r   r8   r   r   r   r   r   æ   s   r   r   Nr(   r6   r   r   r   Ú,test_multiple_interfaces_with_missing_methodÖ   s    
ÿzEInterfaceCheckerTestCase.test_multiple_interfaces_with_missing_methodc                 C   sX   G dd„ dt ƒ}G dd„ d|ƒ}G dd„ d|ƒ}t|ƒG dd„ dtƒƒ}t||d	ƒ d
S )z inherited interfaces c                   @   s   e Zd ZeZdS )z@InterfaceCheckerTestCase.test_inherited_interfaces.<locals>.IFooNr#   r   r   r   r   r   õ   s   r   c                   @   s   e Zd ZeZdS )z@InterfaceCheckerTestCase.test_inherited_interfaces.<locals>.IBarNr/   r   r   r   r   r1   ø   s   r1   c                   @   s   e Zd ZeZdS )z@InterfaceCheckerTestCase.test_inherited_interfaces.<locals>.IBazNr2   r   r   r   r   r4   û   s   r4   c                   @   s   e Zd ZeZeZeZdS )z?InterfaceCheckerTestCase.test_inherited_interfaces.<locals>.FooNr5   r   r   r   r   r   ÿ   s   r   r   Nr%   r6   r   r   r   Útest_inherited_interfacesò   s    z2InterfaceCheckerTestCase.test_inherited_interfacesc                 C   s^   G dd„ dt ƒ}G dd„ d|ƒ}G dd„ d|ƒ}t|ƒG dd„ dtƒƒ}|  tt||d	¡ d
S )z) inherited with invalid method signature c                   @   s   e Zd Zdd„ ZdS )z^InterfaceCheckerTestCase.test_inherited_interfaces_with_invalid_method_signature.<locals>.IFooc                 S   s   d S r   r   r   r   r   r   r     s    zbInterfaceCheckerTestCase.test_inherited_interfaces_with_invalid_method_signature.<locals>.IFoo.fooNr   r   r   r   r   r     s   r   c                   @   s   e Zd Zdd„ ZdS )z^InterfaceCheckerTestCase.test_inherited_interfaces_with_invalid_method_signature.<locals>.IBarc                 S   s   d S r   r   r   r   r   r   r8     s    zbInterfaceCheckerTestCase.test_inherited_interfaces_with_invalid_method_signature.<locals>.IBar.barNr9   r   r   r   r   r1     s   r1   c                   @   s   e Zd Zdd„ ZdS )z^InterfaceCheckerTestCase.test_inherited_interfaces_with_invalid_method_signature.<locals>.IBazc                 S   s   d S r   r   r   r   r   r   r:     s    zbInterfaceCheckerTestCase.test_inherited_interfaces_with_invalid_method_signature.<locals>.IBaz.bazNr;   r   r   r   r   r4     s   r4   c                   @   s$   e Zd Zdd„ Zdd„ Zdd„ ZdS )z]InterfaceCheckerTestCase.test_inherited_interfaces_with_invalid_method_signature.<locals>.Fooc                 S   s   d S r   r   r   r   r   r   r     s    zaInterfaceCheckerTestCase.test_inherited_interfaces_with_invalid_method_signature.<locals>.Foo.fooc                 S   s   d S r   r   r   r   r   r   r8     s    zaInterfaceCheckerTestCase.test_inherited_interfaces_with_invalid_method_signature.<locals>.Foo.barc                 S   s   d S r   r   r'   r   r   r   r:   "  s    zaInterfaceCheckerTestCase.test_inherited_interfaces_with_invalid_method_signature.<locals>.Foo.bazNr<   r   r   r   r   r     s   r   r   Nr(   r6   r   r   r   Ú7test_inherited_interfaces_with_invalid_method_signature	  s    zPInterfaceCheckerTestCase.test_inherited_interfaces_with_invalid_method_signaturec                 C   s^   G dd„ dt ƒ}G dd„ d|ƒ}G dd„ d|ƒ}t|ƒG dd„ dtƒƒ}|  tt||d	¡ d
S )z) inherited interfaces with missing trait c                   @   s   e Zd ZeZdS )zSInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_trait.<locals>.IFooNr#   r   r   r   r   r   *  s   r   c                   @   s   e Zd ZeZdS )zSInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_trait.<locals>.IBarNr/   r   r   r   r   r1   -  s   r1   c                   @   s   e Zd ZeZdS )zSInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_trait.<locals>.IBazNr2   r   r   r   r   r4   0  s   r4   c                   @   s   e Zd ZeZeZdS )zRInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_trait.<locals>.FooNr>   r   r   r   r   r   4  s   r   r   Nr(   r6   r   r   r   Ú,test_inherited_interfaces_with_missing_trait'  s    zEInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_traitc                 C   s^   G dd„ dt ƒ}G dd„ d|ƒ}G dd„ d|ƒ}t|ƒG dd„ dtƒƒ}|  tt||d	¡ d
S )z* inherited interfaces with missing method c                   @   s   e Zd Zdd„ ZdS )zTInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_method.<locals>.IFooc                 S   s   d S r   r   r   r   r   r   r   @  s    zXInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_method.<locals>.IFoo.fooNr   r   r   r   r   r   ?  s   r   c                   @   s   e Zd Zdd„ ZdS )zTInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_method.<locals>.IBarc                 S   s   d S r   r   r   r   r   r   r8   D  s    zXInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_method.<locals>.IBar.barNr9   r   r   r   r   r1   C  s   r1   c                   @   s   e Zd Zdd„ ZdS )zTInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_method.<locals>.IBazc                 S   s   d S r   r   r   r   r   r   r:   H  s    zXInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_method.<locals>.IBaz.bazNr;   r   r   r   r   r4   G  s   r4   c                   @   s   e Zd Zdd„ Zdd„ ZdS )zSInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_method.<locals>.Fooc                 S   s   d S r   r   r   r   r   r   r   N  s    zWInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_method.<locals>.Foo.fooc                 S   s   d S r   r   r   r   r   r   r8   Q  s    zWInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_method.<locals>.Foo.barNr@   r   r   r   r   r   L  s   r   r   Nr(   r6   r   r   r   Ú-test_inherited_interfaces_with_missing_method<  s    zFInterfaceCheckerTestCase.test_inherited_interfaces_with_missing_methodc                 C   sN   G dd„ dt ƒ}t|ƒG dd„ dtƒƒ}G dd„ d|ƒ}|  tt||d¡ dS )	z- Subclasses with incorrect method signatures c                   @   s   e Zd Zdd„ ZdS )zSInterfaceCheckerTestCase.test_subclasses_with_wrong_signature_methods.<locals>.IFooc                 S   s   d S r   r   ©r   Úargumentr   r   r   r   Z  s    zWInterfaceCheckerTestCase.test_subclasses_with_wrong_signature_methods.<locals>.IFoo.fooNr   r   r   r   r   r   Y  s   r   c                   @   s   e Zd Zdd„ ZdS )zRInterfaceCheckerTestCase.test_subclasses_with_wrong_signature_methods.<locals>.Fooc                 S   s   d S r   r   rF   r   r   r   r   _  s    zVInterfaceCheckerTestCase.test_subclasses_with_wrong_signature_methods.<locals>.Foo.fooNr   r   r   r   r   r   ]  s   r   c                   @   s   e Zd Zdd„ ZdS )zRInterfaceCheckerTestCase.test_subclasses_with_wrong_signature_methods.<locals>.Barc                 S   s   d S r   r   r   r   r   r   r   c  s    zVInterfaceCheckerTestCase.test_subclasses_with_wrong_signature_methods.<locals>.Bar.fooNr   r   r   r   r   ÚBarb  s   rH   r   Nr(   )r   r   r   rH   r   r   r   Ú,test_subclasses_with_wrong_signature_methodsV  s
    zEInterfaceCheckerTestCase.test_subclasses_with_wrong_signature_methodsc                    sL   G dd„ dt ƒ‰ tˆ ƒG dd„ dtƒƒ}G ‡ fdd„dtƒ}||ƒ d� dS )	z
 instance c                   @   s   e Zd ZdS )z4InterfaceCheckerTestCase.test_instance.<locals>.IFooNr+   r   r   r   r   r   m  s   r   c                   @   s   e Zd ZdS )z3InterfaceCheckerTestCase.test_instance.<locals>.FooNr+   r   r   r   r   r   p  s   r   c                       s   e Zd Ze” ƒZdS )z3InterfaceCheckerTestCase.test_instance.<locals>.BarN)r   r   r   r   r   r   ©r   r   r   rH   t  s   rH   )r   N)r   r	   r   )r   r   rH   r   rJ   r   Útest_instancej  s
    z&InterfaceCheckerTestCase.test_instancec                 C   s²   G dd„ dt ƒ}t|ƒG dd„ dtƒƒ}|ƒ }tjdd��,}t dt¡ |  |||ƒ¡ W d  ƒ n1 sl0    Y  |  t|ƒd	¡ |d
 }|  	dt
|jƒ¡ |  	d|j¡ dS )z
 callable c                   @   s   e Zd ZdS )z4InterfaceCheckerTestCase.test_callable.<locals>.IFooNr+   r   r   r   r   r   |  s   r   c                   @   s   e Zd ZdS )z3InterfaceCheckerTestCase.test_callable.<locals>.FooNr+   r   r   r   r   r     s   r   T©ÚrecordÚalwaysNé   r   ú&use "adapt(adaptee, protocol)" insteadÚtest_interface_checker)r   r	   r   ÚwarningsÚcatch_warningsÚsimplefilterÚDeprecationWarningÚassertEqualÚlenÚassertInÚstrÚmessageÚfilename)r   r   r   ÚfÚ	warn_msgsÚwarn_msgr   r   r   Útest_callabley  s    .
ÿz&InterfaceCheckerTestCase.test_callablec                 C   sâ   G dd„ dt ƒ}G dd„ dtƒ}t|ƒG dd„ dtƒƒ}t|||ƒ |ƒ }tjdd��$}t d	t¡ ||ƒ}W d
  ƒ n1 s€0    Y  |  	d
|¡ |  
|t|ƒ¡ |  
t|ƒd¡ |d }|  dt|jƒ¡ |  d|j¡ d
S )z adaptation c                   @   s   e Zd ZdS )z6InterfaceCheckerTestCase.test_adaptation.<locals>.IFooNr+   r   r   r   r   r   ”  s   r   c                   @   s   e Zd ZdS )z5InterfaceCheckerTestCase.test_adaptation.<locals>.FooNr+   r   r   r   r   r   —  s   r   c                   @   s   e Zd ZdS )zBInterfaceCheckerTestCase.test_adaptation.<locals>.FooToIFooAdapterNr+   r   r   r   r   ÚFooToIFooAdapterš  s   r`   TrL   rN   NrO   r   rP   rQ   )r   r   r	   r   r
   rR   rS   rT   rU   ZassertNotEqualrV   ÚtyperW   rX   rY   rZ   r[   )r   r   r   r`   r\   r]   Zi_foor^   r   r   r   Útest_adaptation‘  s"    &
ÿz(InterfaceCheckerTestCase.test_adaptationN)r   r   r   Ú__doc__r   r   r"   r&   r*   r,   r.   r7   r=   r?   rA   rB   rC   rD   rE   rI   rK   r_   rb   r   r   r   r   r   %   s(   	 r   )rc   ZunittestrR   Ztraits.adaptation.apir   Z
traits.apir   r   r   r   r   r	   r
   Ztraits.interface_checkerr   r   Ztraitsr   ZTestCaser   r   r   r   r   Ú<module>   s   $