Nexus File Manager
v2.0
🏠
Dashboard
⚡
System
🌐
›
opt
›
alt
›
python38
›
lib64
›
python3.8
›
test
›
__pycache__
Quick:
⬆️ Parent
🌐 Root
🏠 Home
🌍 WWW
📁 Temp
⚙️ Etc
📤 Upload
📁 Create
⚡ WordPress Admin
🔄 Refresh
✏️ test_binhex.cpython-38.opt-2.pyc
← Back
U i�f, � @ sH d dl Z d dlZd dlmZ G dd� dej�Zdd� ZedkrDe� dS )� N)�supportc @ s8 e Zd Zdd� Zdd� ZdZdd� Zdd � Zd d� ZdS ) �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 �5/opt/alt/python38/lib64/python3.8/test/test_binhex.py�setUp s zBinHexTestCase.setUpc C s( t �| j� t �| j� t �| j� d S �N)r �unlinkr r r r r r r �tearDown s zBinHexTestCase.tearDowns Jack is my heroc C sv t | jd��}|�| j� W 5 Q R X t�| j| j� t�| j| j� t | jd��}|�� }W 5 Q R X | �| j|� d S )N�wb�rb) �openr �write�DATA�binhexr Zhexbin�readlineZassertEqual)r �fZfinishr r r �test_binhex s zBinHexTestCase.test_binhexc C s0 t | jd�}|�� | �tjtj| j| j� d S )Nr )r r �closeZassertRaisesr �Errorr )r Zf3r r r �"test_binhex_error_on_long_filename&