관리-도구
편집 파일: test_tuple.cpython-37.pyc
B VX�Y' � @ s2 d dl Z d dlmZ d dlZG dd� de j�ZdS )� N)�StringIOc @ s e Zd Zdd� Zdd� ZdS )� TestTuplesc C s� d}t �t|��}| �|t �|�� | �|t j|dd�� | jtt j|dd� | �|t j|td�� | �|t j|dtd�� | �t �t|��t j|dtd�� d S )N)� � � T)�tuple_as_arrayF)�default)r r )�json�dumps�list�assertEqual�assertRaises� TypeError�repr)�self�t�expect� r �N/opt/alt/python37/lib64/python3.7/site-packages/simplejson/tests/test_tuple.py�test_tuple_array_dumps s z!TestTuples.test_tuple_array_dumpsc C s� d}t �t|��}t� }t �||� | �||�� � t� }t j||dd� | �||�� � | jtt j|t� dd� t� }t j||t d� | �||�� � t� }t j||dt d� | �||�� � t� }t j||dt d� | �t �t |��|�� � d S )N)r r r T)r F)r )r r ) r r r r �dumpr �getvaluer r r )r r r �sior r r �test_tuple_array_dump s* z TestTuples.test_tuple_array_dumpN)�__name__� __module__�__qualname__r r r r r r r s r )ZunittestZsimplejson.compatr � simplejsonr ZTestCaser r r r r �<module> s