관리-도구
편집 파일: test_searchengine.cpython-35.opt-2.pyc
���]�, � @ sy d d l Z d d l Z d d l m Z m Z m Z d d l j Z d d l m Z d d l m Z m Z d d l m Z d d � Z d d � Z Gd d � d � Z Gd d � d e j � Z Gd d � d e j � Z Gd d � d e j � Z Gd d � d e j � Z Gd d � d e j � Z Gd d � d e j � Z Gd d � d e j � Z e d k rue j d d d d � d S)� N)� BooleanVar� StringVar�TclError)�SearchEngine)�Var�Mbox)�Textc C s t t _ t t _ t t _ d S)N)r �ser r r �tkMessageBox� r r �6/opt/alt/python35/lib64/python3.5/test_searchengine.py�setUpModule s r c C s t t _ t t _ t t _ d S)N)r r r r r r r r �tearDownModule s r c @ s e Z d Z d d � Z d S)�Mockc O s d S)Nr )�self�args�kwargsr r r �__init__ s z Mock.__init__N)�__name__� __module__�__qualname__r r r r r r s r c @ s e Z d Z d d � Z d S)�GetTestc C s~ t j } t t _ z[ t � } t j | � } | j | t j � | j | j | � | j t j | � | � Wd | t _ Xd S)N)r r r �getZassertIsInstanceZassertIsZ _searchengine)r Zsaved_Engine�root�enginer r r �test_get# s zGetTest.test_getN)r r r r r r r r r ! s r c @ s e Z d Z d d � Z d S)�GetLineColTestc C sb | j t j d � d � | j t j d � d � | j t t j d � | j t t j d � d S) Nz1.0� r z1.11� z1.0 lineend�end)r r )r r )�assertEqualr Zget_line_colZassertRaises� ValueError)r r r r �test_get_line_col1 s z GetLineColTest.test_get_line_colN)r r r r"