B
    18\                 @   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getattrassertEqual)selfresultobject
methodnameargskwargsZ
realresult r   X/oak/stanford/groups/akundaje/marinovg/programs/Python-3.7.3/Lib/test/test_userstring.py
checkequal   s    

zUserStringTest.checkequalc          	   G   sD   |  |}| |}t|||  W d Q R X | t|jd d S )N )r   assertRaisesr   assertNotEqualstr	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__)unittesttestr   collectionsr   Z
CommonTestZMixinStrUnicodeUserStringTestTestCaser   r   mainr   r   r   r   <module>   s   
