관리-도구
편집 파일: test_hyperparser.cpython-35.opt-2.pyc
���]�# � @ s� d d l Z d d l m Z d d l m Z m Z d d l m Z d d l m Z Gd d � d � Z Gd d � d e j � Z e d k r� e j d d � d S) � N)�requires)�Tk�Text)�EditorWindow)�HyperParserc @ s. e Z d Z d d � Z e j Z e j Z d S)�DummyEditwinc C s1 | | _ d | _ d | _ d | _ d | _ d S)N� T�2 �� �� )r r r )�textZindentwidthZtabwidth�context_use_ps1Znum_context_lines)�selfr � r �5/opt/alt/python35/lib64/python3.5/test_hyperparser.py�__init__ s zDummyEditwin.__init__N)�__name__� __module__�__qualname__r r Z_build_char_in_string_funcZis_char_in_stringr r r r r s r c @ s� e Z d Z d Z e d d � � Z e d d � � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)�HyperParserTestu# """This is a module docstring""" # this line is a comment x = "this is a string" y = 'this is also a string' l = [i for i in range(10)] m = [py*py for # comment py in l] x.__len__ z = ((r'asdf')+('a'))) [x for x in for = False cliché = "this is a string with unicode, what a cliché"c C sK t d � t � | _ | j j � t | j � | _ t | j � | _ d S)NZgui)r r �rootZwithdrawr r r �editwin)�clsr r r � setUpClass$ s zHyperParserTest.setUpClassc C s# | ` | ` | j j � | ` d S)N)r r r Zdestroy)r r r r � tearDownClass, s zHyperParserTest.tearDownClassc C s | j j d | j � d S)N�insert)r r �code)r r r r �setUp2 s zHyperParserTest.setUpc C s# | j j d d � d | j _ d S)Nz1.0�endT)r �deleter r )r r r r �tearDown5 s zHyperParserTest.tearDownc C s t | j | � S)N)r r )r �indexr r r � get_parser9 s zHyperParserTest.get_parserc C s� | j t � �, } | j j d d d � | j d � } Wd QRX| j d t | j � � d | j _ | j d � } | j | j | j j d d � � | j j d | j j d d � d � | j d � } d S) NZconsolez1.0z1.endz1.5�precedesFr � z54.5)�assertRaises� ValueErrorr Ztag_addr"