| Server IP : 118.27.122.248 / Your IP : 216.73.216.153 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/test/__pycache__/ |
Upload File : |
3 � �^� � @ sH d dl Z d dlZd dlmZ G dd� dej�Zdd� ZedkrDe� dS )� N)�supportc @ s0 e Zd Zdd� Zdd� ZdZdd� Zdd � Zd S )�BinHexTestCasec C s( t jd | _t jd | _t jd | _d S )N�1�2ZPvery_long_filename__very_long_filename__very_long_filename__very_long_filename__)r ZTESTFN�fname1�fname2�fname3)�self� r �0/opt/alt/python36/lib64/python3.6/test_binhex.py�setUp s zBinHexTestCase.setUpc C s( t j| j� t j| j� t j| j� d S )N)r �unlinkr r r )r r r r �tearDown s zBinHexTestCase.tearDowns Jack is my heroc C sn t | jd�}|j| j� |j� tj| j| j� tj| j| j� t | jd�}|j� }|j� | j | j|� d S )N�wb�rb) �openr �write�DATA�close�binhexr Zhexbin�readlineZassertEqual)r �fZfinishr r r �test_binhex s zBinHexTestCase.test_binhexc C s0 t | jd�}|j� | jtjtj| j| j� d S )Nr )r r r ZassertRaisesr �Errorr )r Zf3r r r �"test_binhex_error_on_long_filename( s z1BinHexTestCase.test_binhex_error_on_long_filenameN)�__name__� __module__�__qualname__r r r r r r r r r r s r c C s t jt� d S )N)r Zrun_unittestr r r r r � test_main2 s r �__main__)r ZunittestZtestr ZTestCaser r r r r r r �<module> s '