Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/twisted/runner/test/__pycache__/ |
Upload File : |
o �b� � @ s2 d Z ddlmZ ddlmZ G dd� dej�ZdS )z, Tests for implementations of L{inetdconf}. � )� inetdconf)�unittestc @ s0 e Zd ZdZdZdZdd� Zdd� Zdd� ZdS ) �ServicesConfTestsz- Tests for L{inetdconf.ServicesConf} Nc C s� | � � | _t| jd�� }|�d� W d � n1 sw Y | � � | _t| jd��}|�d� W d � d S 1 s<w Y d S )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�setUp s �� �"�zServicesConfTests.setUpc C s: t �� }| j|_|�� | �|jdddddddd�� dS )z< Services are parsed from default filename. �P ))�http�tcp)r �udp)r �sctp)�wwwr )r r )�www-httpr )r r N)r �ServicesConfr �defaultFilename� parseFile�assertEqual�services)r �confr r r �test_parseDefaultFilename'