관리-도구
편집 파일: test_rpc.cpython-36.pyc
3 � 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|j�\}\}| j|t j� | jd|� t j|�}| j|jd� d S )Nc S s t t t S )N)�a�b�c� r r �?/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_rpc.py�f s z/CodePicklerTest.test_pickle_unpickle.<locals>.fs test_rpc.pyr r r )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 | j tdd� j�tjj� d S )Nc S s d S )Nr r r r r �<lambda> s 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� }| j dtj|j�� d S )Nc S s d S )Nr r r r r r s 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