관리-도구
편집 파일: test_outwin.cpython-36.opt-1.pyc
3 � f� � @ s� d Z ddlmZ ddlZddlmZ ddlmZmZ ddl m Z ddlmZ ddlm Z G d d � d ej�ZG dd� dej�Zed kr�ejdd� dS )zTest outwin, coverage 76%.� )�outwinN)�requires)�Tk�Text)� Mbox_func)�Func)�mockc @ s\ e Zd Zedd� �Zedd� �Zdd� Zdd� Zd d � Zdd� Z d d� Z dd� Zdd� ZdS )�OutputWindowTestc C sF t d� t� }| _|j� tjd d d |� }| _t|� | _|_d S )NZgui) r r �rootZwithdrawr ZOutputWindow�windowr �text)�clsr �w� r �B/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_outwin.py� setUpClass s zOutputWindowTest.setUpClassc C s$ | j j� | `| ` | jj� | `d S )N)r �closer r Zdestroy)r r r r � tearDownClass s zOutputWindowTest.tearDownClassc C s | j jdd� d S )Nz1.0�end)r �delete)�selfr r r �setUp s zOutputWindowTest.setUpc C s* | j }| j|jd�� | j|jt�� d S )Nztest.txt)r ZassertFalseZispythonsource�__file__)r r r r r �test_ispythonsource s z$OutputWindowTest.test_ispythonsourcec C s | j | jjj� d� d S )NZOutput)�assertEqualr �top�title)r r r r �test_window_title&