CasperSecurity

Current Path : /lib/python3/dist-packages/twisted/runner/test/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/twisted/runner/test/__pycache__/test_inetdconf.cpython-310.pyc

o

�b��@s2dZddlmZddlmZGdd�dej�ZdS)z,
Tests for implementations of L{inetdconf}.
�)�	inetdconf)�unittestc@s0eZdZdZdZdZdd�Zdd�Zdd�ZdS)	�ServicesConfTestsz-
    Tests for L{inetdconf.ServicesConf}
    NcCs�|��|_t|jd��
}|�d�Wd�n1swY|��|_t|jd��}|�d�Wd�dS1s<wYdS)N�wz�
            # This is a comment
            http            80/tcp          www www-http    # WorldWideWeb HTTP
            http            80/udp          www www-http
            http            80/sctp
            z]
            https           443/tcp                # http protocol over TLS/SSL
            )�mktemp�servicesFilename1�open�write�servicesFilename2)�self�f�r
�D/usr/lib/python3/dist-packages/twisted/runner/test/test_inetdconf.py�setUps
��
	�"�zServicesConfTests.setUpcCs:t��}|j|_|��|�|jdddddddd��dS)z<
        Services are parsed from default filename.
        �P))�http�tcp)r�udp)r�sctp)�wwwr)rr)�www-httpr)rrN)r�ServicesConfr�defaultFilename�	parseFile�assertEqual�services)r�confr
r
r�test_parseDefaultFilename's��z+ServicesConfTests.test_parseDefaultFilenamecCsRt��}t|j��
}|�|�Wd�n1swY|�|jddi�dS)z9
        Services are parsed from given C{file}.
        N)�httpsri�)rrrr
rrr)rrrr
r
r�test_parseFile;s���z ServicesConfTests.test_parseFile)	�__name__�
__module__�__qualname__�__doc__rr
rrrr
r
r
rrsrN)r#�twisted.runnerr�
twisted.trialr�TestCaserr
r
r
r�<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