
íÂÐZÏ  ã               @   sE   d  Z  d d l Z Gd d „  d e j ƒ Z e d k rA e j ƒ  d S)zTests for josepy.errors.é    Nc               @   s(   e  Z d  Z d d „  Z d d „  Z d S)ÚUnrecognizedTypeErrorTestc             C   s,   d d l  m } | d d d i ƒ |  _ d  S)Nr   )ÚUnrecognizedTypeErrorZfooÚtype)Zjosepy.errorsr   Úerror)Úselfr   © r   ú4/usr/lib/python3/dist-packages/josepy/errors_test.pyÚsetUp   s    zUnrecognizedTypeErrorTest.setUpc             C   s   |  j  d t |  j ƒ ƒ d  S)Nz5foo was not recognized, full message: {'type': 'foo'})ZassertEqualÚstrr   )r   r   r   r   Útest_str
   s    z"UnrecognizedTypeErrorTest.test_strN)Ú__name__Ú
__module__Ú__qualname__r	   r   r   r   r   r   r      s   r   Ú__main__)Ú__doc__ZunittestZTestCaser   r   Úmainr   r   r   r   Ú<module>   s   