U
    Ùf½  ã                   @   s4   d Z ddlZddlmZ dd„ Zdd„ Zdd	„ ZdS )
z%Tests for IPython.utils.importstring.é    N)Úimport_itemc                  C   s    ddl } tdƒ}| |kst‚dS )zTest simple importsr   NÚos)r   r   ÚAssertionError)r   Zos2© r   úL/tmp/pip-target-lpfmz8o1/lib/python/IPython/utils/tests/test_importstring.pyÚtest_import_plain   s    r   c                  C   s$   ddl m}  tdƒ}| |ks t‚dS )z#Test nested imports from the stdlibr   )Úpathzos.pathN)r   r   r   r   )r   Zpath2r   r   r   Útest_import_nested   s    r	   c                   C   s   t  ttd¡ dS )z3Test that failing imports raise the right exceptionzIPython.foobarN)ÚpytestZraisesÚImportErrorr   r   r   r   r   Útest_import_raises&   s    r   )Ú__doc__r
   ZIPython.utils.importstringr   r   r	   r   r   r   r   r   Ú<module>   s
   