3
Xd                 @   sT   d dl Z ddlmZ ddlmZ ddlmZ dd Ze j	j
ej d	d
dd ZdS )    N   )FSSurfaceCommand   )
freesurfer)FreeSurferSourcec              C   sx   t t ddt dddt  d} tj }xLt| j D ]<\}}x2t|j D ]"\}}t|j | ||ksJtqJW q4W d S )Nz%s)ZargstrT)ZnohashZ
usedefault)argsenvironsubjects_dir)dictr   Z
input_speclistitemsgetattrZtraitsAssertionError)Z	input_mapinputskeymetadataZmetakeyvalue r   j/var/www/html/virt/lib/python3.6/site-packages/nipype/interfaces/freesurfer/tests/test_FSSurfaceCommand.pytest_FSSurfaceCommand_inputs	   s    

r   zfreesurfer is not installed)reasonc             C   s   t tjj ddd}| j|_d|_|j jj	 }xvdd|d	 |d
 fgD ]\\}}x&d
d|fD ]}t
j|||ks\tq\W x*dd|d
 fD ]}t
j|||kstqW qHW d S )NZ	fsaverageZlh)r	   Z
subject_idZhemiFlh.whitelh.pial
./lh.white	./lh.pialwhitepialz./pial)r   r   )r   r   )r   fsZInfoZsubjectsdirZstrpathbase_dirZresource_monitorrunoutputsgetr   Z_associated_filer   )ZtmpdirZfssrcZ	fsavginfor   r   namer   r   r   test_associated_file   s    r#   )Zpytestbaser    r   r   ior   r   markZskipifZno_freesurferr#   r   r   r   r   <module>   s
   