관리-도구
편집 파일: test_subclass.cpython-37.opt-1.pyc
B VX�Yd � @ sT d dl mZ d dlZd dlmZ G dd� de�ZG dd� de�Z G dd � d e�Z dS ) � )�TestCaseN)�Decimalc @ s e Zd Zdd� ZeZdS )�AlternateIntc C s dS )Nzinvalid json� )�selfr r �Q/opt/alt/python37/lib64/python3.7/site-packages/simplejson/tests/test_subclass.py�__repr__ s zAlternateInt.__repr__N)�__name__� __module__�__qualname__r �__str__r r r r r s r c @ s e Zd Zdd� ZeZdS )�AlternateFloatc C s dS )Nzinvalid jsonr )r r r r r s zAlternateFloat.__repr__N)r r r r r r r r r r s r c @ s e Zd Zdd� Zdd� ZdS )�TestSubclassc C sT | � t�td��d� | � t�td��d� | � t�t�td�di��ddi� d S )N� �1���z-1)�assertEqual�json�dumpsr �loads)r r r r �test_int s zTestSubclass.test_intc C sT | � t�td��d� | � t�td��d� | � t�t�td�di��ddi� d S )Ng �?z1.0g �z-1.0r )r r r r r )r r r r � test_float s zTestSubclass.test_floatN)r r r r r r r r r r s r )Zunittestr Z simplejsonr Zdecimalr �intr �floatr r r r r r �<module> s