CasperSecurity

Current Path : /lib/python3/dist-packages/gyp/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/gyp/__pycache__/common_test.cpython-310.pyc

o

p.a��@sXdZddlZddlZddlZGdd�dej�ZGdd�dej�Zedkr*e�	�dSdS)z"Unit tests for the common.py file.�Nc@seZdZdd�Zdd�ZdS)�TestTopologicallySortedcsDddggdgdgd���fdd�}|�tj����|�gd��dS)	zATest that sorting works on a valid graph with one possible order.�b�c�d��arrrc�t�|�S�N��tuple��node��graph��1/usr/lib/python3/dist-packages/gyp/common_test.py�GetEdge�z3TestTopologicallySorted.test_Valid.<locals>.GetEdge)rrrrN)�assertEqual�gyp�common�TopologicallySorted�keys��selfrrrr�
test_Valids��z"TestTopologicallySorted.test_ValidcsBdgdgdgdgd���fdd�}|�tjjtjj���|�dS)	z3Test that an exception is thrown on a cyclic graph.rrrrrcrr	r
rrrrr%rz3TestTopologicallySorted.test_Cycle.<locals>.GetEdgeN)�assertRaisesrr�
CycleErrorrrrrrr�
test_Cycles��z"TestTopologicallySorted.test_CycleN)�__name__�
__module__�__qualname__rrrrrrrsrc@s<eZdZdZdZdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
S)�
TestGetFlavorz0Test that gyp.common.GetFlavor works as intended�cCstj|_dSr	)�sys�platform�original_platform�rrrr�setUp0rzTestGetFlavor.setUpcCs|jt_dSr	)r&r$r%r'rrr�tearDown3rzTestGetFlavor.tearDowncCs|t_|�|tj�|��dSr	)r$r%rrr�	GetFlavor)r�expected�argument�paramrrr�assertFlavor6szTestGetFlavor.assertFlavorcCst|�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�r.r'rrr�test_platform_default:sz#TestGetFlavor.test_platform_defaultcCs|�ddddi�dS)N�foobarr8�flavorr:r'rrr�
test_paramDszTestGetFlavor.test_paramN)
rr r!�__doc__r&r(r)r.r;r>rrrrr",s
r"�__main__)
r?�
gyp.commonr�unittestr$�TestCaserr"r�mainrrrr�<module>s�
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY