3
I4W^*  ã               @   s^   d dl mZ d dl mZ d dl mZ d dl mZ d dlmZmZ d dlZ	G dd„ dej
ƒZdS )	é    )Úabsolute_import)Údivision)Úprint_function)Úunicode_literals)ÚutilsÚ	test_utilNc               @   s   e Zd Zdd„ ZdS )Ú	TestUtilsc          
   C   s˜   t jddƒt jddƒt jddƒt jdtjddgƒƒt jd	tjd
dgƒƒt jdtjddgƒƒg}t j|ƒ}dddddgd
dgddgdœ}| j||dƒ d S )NÚint1é   Úfloat1g      @Ústring1ZfooÚintlist1é   Ú
floatlist1g      @g      @Ústringlist1Úbars   foos   bar)r	   r   r   r   r   r   z6dictionary version of arguments doesn't match original)r   ZMakeArgumentÚnpÚarrayZ
ArgsToDictZassertEqual)ÚselfÚargsZdict_Úexpected© r   ú9/tmp/pip-build-e66j97b2/torch/caffe2/python/utils_test.pyÚtestArgsToDict   s    



zTestUtils.testArgsToDictN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r      s   r   )Ú
__future__r   r   r   r   Zcaffe2.pythonr   r   Znumpyr   ZTestCaser   r   r   r   r   Ú<module>   s   