B
    v9a8                 @   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    /usr/lib/python3.7/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)	tempfileZTemporaryDirectoryospathjoinopenwriter   Zprocess)r   Z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   Zunittestr   Ztest.test_toolsr   r   ZTestCaser   r   mainr   r   r   r   <module>   s   