관리-도구
편집 파일: test_rpc.cpython-37.pyc
B � f% � @ sB d Z ddlmZ ddlZG dd� dej�Zedkr>ejdd� dS ) zTest rpc, coverage 20%.� )�rpcNc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�CodePicklerTestc C sP dd� }t �|j�\}\}| �|t j� | �d|� t �|�}| �|jd� d S )Nc S s t t t S )N)�a�b�c� r r �?/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_rpc.py�f � z/CodePicklerTest.test_pickle_unpickle.<locals>.fs test_rpc.py)r r r )r Zpickle_code�__code__ZassertIsZ unpickle_code�assertInZassertEqual�co_names)�selfr �funcZcbytes�coder r r �test_pickle_unpickle s z$CodePicklerTest.test_pickle_unpicklec C s | � tdd� j�tjj� d S )Nc S s d S )Nr r r r r �<lambda> r z3CodePicklerTest.test_code_pickler.<locals>.<lambda>)r �typer r ZCodePickler�dispatch_table)r r r r �test_code_pickler s z!CodePicklerTest.test_code_picklerc C s dd� }| � dt�|j�� d S )Nc S s d S )Nr r r r r r r z%CodePicklerTest.test_dumps.<locals>.fs test_rpc.py)r r �dumpsr )r r r r r � test_dumps s zCodePicklerTest.test_dumpsN)�__name__� __module__�__qualname__r r r r r r r r s r �__main__� )� verbosity)�__doc__Zidlelibr ZunittestZTestCaser r �mainr r r r �<module> s