
    f	                         d dl Z 	 eZ G d de j                        Z G d de j                        Zy# e$ r d ZY 5w xY w)    Nc                 "    | |k  rdS | |k(  rdS dS )Nr       )abs     /var/dept/share/cheung/public_html/OutSchool/python/env/lib/python3.12/site-packages/zope/schema/tests/test__bootstrapinterfaces.pycomparer
      s    Ur4a1f4!4    c                   6    e Zd Zd Zd Zd Zd Zd Zd Zd Z	y)	ValidationErrorTestsc                     ddl m} |S )Nr   )ValidationError) zope.schema._bootstrapinterfacesr   )selfr   s     r	   _getTargetClassz$ValidationErrorTests._getTargetClass   s    Dr   c                 .     | j                         |i |S N)r   )r   argskws      r	   _makeOnezValidationErrorTests._makeOne   s    %t##%t2r22r   c                      G d d| j                               } |       }| j                  |j                         d       y )Nc                       e Zd ZdZy).ValidationErrorTests.test_doc.<locals>.DerivedDERIVEDN)__name__
__module____qualname____doc__r   r   r	   Derivedr   "   s    r   r    r   )r   assertEqualdoc)r   r    insts      r	   test_doczValidationErrorTests.test_doc!   s4    	d**, 	yY/r   c                     | j                         }| j                  t        |t                     d       | j                  t        t               |      d       y )Nr   r   )r   r!   r
   objectr   ves     r	   test___cmp___no_argsz)ValidationErrorTests.test___cmp___no_args'   s?    ]]_VX.32.2r   c                     | j                  d      }| j                  d      }| j                  t        ||      d       | j                  t        ||      d       | j                  t        ||      d       y )Nabcdefr   r   r   )r   r!   r
   r   leftrights      r	   test___cmp___hitz%ValidationErrorTests.test___cmp___hit,   sc    }}U#e$u-r2t,a0-q1r   c                     | j                         }| j                  |t                      | j                  t               |       y r   )r   assertNotEqualr&   r'   s     r	   test___eq___no_argsz(ValidationErrorTests.test___eq___no_args3   s1    ]]_B)FHb)r   c                     | j                  d      }| j                  d      }| j                  ||       | j                  ||       | j                  ||       | j                  ||       y )Nr+   r,   )r   r2   r!   r-   s      r	   test___eq___w_argsz'ValidationErrorTests.test___eq___w_args8   s^    }}U#e$D%(E4(t$&r   N)
r   r   r   r   r   r$   r)   r0   r3   r5   r   r   r	   r   r      s%    303
2*
'r   r   c                       e Zd Zd Zd Zd Zy)TestOutOfBoundsc                     ddl m} |S )Nr   )OutOfBounds)r   r9   )r   r9   s     r	   r   zTestOutOfBounds._getTargetClassC   s    @r   c                 j    | j                  dt        | j                         j                               y )N	TOO_LARGE)assertInreprr   r;   r   s    r	   test_TOO_LARGE_reprz#TestOutOfBounds.test_TOO_LARGE_reprG   $    k4(<(<(>(H(H#IJr   c                 j    | j                  dt        | j                         j                               y )N	TOO_SMALL)r<   r=   r   rB   r>   s    r	   test_TOO_SMALL_reprz#TestOutOfBounds.test_TOO_SMALL_reprJ   r@   r   N)r   r   r   r   r?   rC   r   r   r	   r7   r7   A   s    KKr   r7   )unittestcmpr
   	NameErrorTestCaser   r7   r   r   r	   <module>rH      sR    5G&'8,, &'R
Kh'' 
K]  555s   3 >>