관리-도구
편집 파일: test_history.cpython-37.pyc
B � f� � @ s� d Z ddlmZ ddlZddlmZ ddlZddlmZ ddl mZ ddlm Z dZdZG d d � d ej�ZG dd� d�ZG d d� dej�Zedkr�ejddd� dS )z Test history, coverage 100%.� )�HistoryN)�requires)�Text)�idleConfza = 7zb = ac @ sD e Zd ZdZedd� �Zdd� Zdd� Zdd � Zd d� Z dd � Z dS )� StoreTestz7Tests History.__init__ and History.store with mock Textc C s t � | _t| j�| _d S )N)�mkText�textr �history)�cls� r �C/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_history.py� setUpClass s zStoreTest.setUpClassc C s | j �dd� g | j_d S )Nz1.0�end)r �deleter )�selfr r r �tearDown s zStoreTest.tearDownc C s` | � | jj| j� | �| jjg � | �| jj� | �| jj� | �| jjt� ddddd�� d S )N�mainr �cyclic� �bool) ZassertIsr r �assertEqual�assertIsNone�prefix�pointerr r Z GetOption)r r r r � test_init s zStoreTest.test_initc C s<