B
    18\8                 @   sX   d Z ddlZddlZddlZddlmZmZ e  G dd dejZe	dkrTe
  dS )z2Tests for the pdeps script in the Tools directory.    N)skip_if_missingimport_toolc               @   s(   e Zd Zedd Zdd Zdd ZdS )
PdepsTestsc             C   s   t d| _d S )Npdeps)r   r   )self r   ^/oak/stanford/groups/akundaje/marinovg/programs/Python-3.7.3/Lib/test/test_tools/test_pdeps.py
setUpClass   s    zPdepsTests.setUpClassc          
   C   sT   t  B}tj|d}t|d}|d W d Q R X | j|i  W d Q R X d S )NZfoowz#!/this/will/fail)	tempfileTemporaryDirectoryospathjoinopenwriter   process)r   tmpdirfnstreamr   r   r   test_process_errors   s
    
zPdepsTests.test_process_errorsc             C   s   | j dg i d S )Na)r   Zinverse)r   r   r   r   test_inverse_attribute_error   s    z'PdepsTests.test_inverse_attribute_errorN)__name__
__module____qualname__classmethodr	   r   r   r   r   r   r   r      s   r   __main__)__doc__r   unittestr   Ztest.test_toolsr   r   TestCaser   r   mainr   r   r   r   <module>   s   