B
    u9a                 @   sN   d dl Z d dlmZ d dlmZ G dd dejeje jZe	dkrJe 
  dS )    N)string_tests)
UserStringc               @   s(   e Zd ZeZdd Zdd Zdd ZdS )UserStringTestc             O   s4   |  |}|  |}t||||}| || d S )N)fixtypegetattrZassertEqual)selfresultobject
methodnameargskwargsZ
realresult r   %/usr/lib/python3.7/test_userstring.py
checkequal   s    

zUserStringTest.checkequalc          	   G   sD   |  |}| |}t|||  W d Q R X | t|jd d S )N )r   ZassertRaisesr   ZassertNotEqualstrZ	exception)r   excobjr
   r   cmr   r   r   checkraises   s    
zUserStringTest.checkraisesc             G   s   |  |}t|||  d S )N)r   r   )r   r	   r
   r   r   r   r   	checkcall%   s    
zUserStringTest.checkcallN)__name__
__module____qualname__r   Z	type2testr   r   r   r   r   r   r   r   	   s   
r   __main__)ZunittestZtestr   collectionsr   Z
CommonTestZMixinStrUnicodeUserStringTestZTestCaser   r   mainr   r   r   r   <module>   s   
