ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     ÿØÿà JFIF      ÿÛ „ 	 ( %!1!%)+//.383,7(-.+



-%%-////---/-.+/--+------/------/--0+--/-/-----.-----ÿÀ  ¥2" ÿÄ               ÿÄ J  	     ! 1AQ"aq2‘#BR‚¡ÁÑ3br’¢±Âð$CSƒ²á4c“%DsÓñÿÄ              ÿÄ *        !1AQa‘"2q3±ð#b¡ÿÚ   ? ¼QxJQaÍuò¸Zö Úü8,ÐÚú
"SSn<rçù–´âE—^ªBÖ9À\†¸ÔÁT­ÃÛ5
ëd´³Í#Ý;Þ38œî ¶H£M:wÎ3…³…âpÔF&‚FK¸9„â4àGEõªfÿ ‘ñ(ßw­pŽF|È¥ù®häðÍÑ¶¹‘[ÒinÙW¶ùñY˜Q{›K"išÒ[Ú8žë\F¹@-?v"ÔU”,ìöžkÿ {I‡£šÍ?e
ríV
..............................................................................................................................................................................
.............................................................................                                                  
                                                                                                                                                                                     
{fc           @   s   d  Z  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
 d d d     YZ d	 e j f d
     YZ e d k r e j d d  n  d S(   s    Unittest for idlelib.HyperParseriN(   t   requires(   t   Tkt   Text(   t   EditorWindow(   t   HyperParsert   DummyEditwinc           B   s)   e  Z d    Z e j j Z e j j Z RS(   c         C   s1   | |  _  d |  _ d |  _ t |  _ d |  _ d  S(   Ni   i2   i  i  (   i2   i  i  (   t   textt   indentwidtht   tabwidtht   Truet   context_use_ps1t   num_context_lines(   t   selfR   (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt   __init__	   s
    				(   t   __name__t
   __module__R   R   t   _build_char_in_string_funct   im_funct   is_char_in_string(    (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyR      s   	t   HyperParserTestc           B   st   e  Z d  Z e d    Z e d    Z d   Z d   Z d   Z d   Z	 d   Z
 d   Z d	   Z d
   Z RS(   s   """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
c         C   sK   t  d  t   |  _ |  j j   t |  j  |  _ t |  j  |  _ d  S(   Nt   gui(   R    R   t   roott   withdrawR   R   R   t   editwin(   t   cls(    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt
   setUpClass#   s
    
c         C   s#   |  `  |  ` |  j j   |  ` d  S(   N(   R   R   R   t   destroy(   R   (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt   tearDownClass+   s    c         C   s   |  j  j d |  j  d  S(   Nt   insert(   R   R   t   code(   R   (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt   setUp1   s    c         C   s#   |  j  j d d  t |  j _ d  S(   Ns   1.0t   end(   R   t   deleteR	   R   R
   (   R   (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt   tearDown4   s    c         C   s   t  |  j |  S(   s>   
        Return a parser object with index at 'index'
        (   R   R   (   R   t   index(    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt
   get_parser8   s    c         C   s   |  j  t  , } |  j j d d d  |  j d  } Wd QX|  j d t | j   t |  j	 _
 |  j d  } |  j | j |  j j d d   |  j j d |  j j d d  d  |  j d	  } d S(
   s6   
        test corner cases in the init method
        t   consoles   1.0s   1.ends   1.5Nt   precedesR   i   s   54.5(   t   assertRaisest
   ValueErrorR   t   tag_addR#   t   assertInt   strt	   exceptiont   FalseR   R
   t   assertEqualt   rawtextt   getR   (   R   t   vet   p(    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt	   test_init>   s    "&c         C   s   |  j  } | d  } |  j | j    | d  } |  j | j    | d  } |  j | j    | d  } |  j | j    | d  } |  j | j    | d  } |  j | j    d  S(   Ns   1.0s   1.4s   2.3s   3.3s   3.7s   4.6(   R#   t   assertFalset   is_in_stringt
   assertTrue(   R   R/   R1   (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt   test_is_in_stringR   s    	c         C   s   |  j  } | d  } |  j | j    | d  } |  j | j    | d  } |  j | j    | d  } |  j | j    | d  } |  j | j    | d  } |  j | j    d  S(   Ns   1.0s   1.1s   2.5s   3.4s   3.6s   4.14(   R#   R5   t
   is_in_codeR3   (   R   R/   R1   (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt   test_is_in_codeb   s    	c         C   s4  |  j  } d   } d   } | d  } |  j | |   |  j | |   | d  } |  j | |  d  |  j | |  | |   | d  } |  j | |  d  |  j | |  | |   | d
  } |  j | |  d  |  j | |   | d  } |  j | |   |  j | |   d  S(   Nc         S   s   |  j  d t  S(   Nt	   mustclose(   t   get_surrounding_bracketsR,   (   t   parser(    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt   without_mustcloseu   s    c         S   s   |  j  d t  S(   NR9   (   R:   R	   (   R;   (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt   with_mustclosez   s    s   3.2s   5.6s   5.4s   5.25s   5.23s   5.21s   5.24s   6.15s   6.4s   6.ends   9.end(   s   5.4s   5.25(   s   5.21s   5.24(   s   6.4s   6.end(   R#   t   assertIsNonet   assertTupleEqual(   R   R/   R<   R=   R1   (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt   test_get_surrounding_bracketr   s$    			c         C   s  |  j  } | d  } |  j | j   d  | d  } |  j t   } | j   Wd  QX|  j d t | j   | d  } |  j | j   d  | d  } |  j | j   d  | d	  } |  j | j   d
  | d  } |  j | j   d  | d  } |  j | j   d  | d  } |  j | j   d  | d  } |  j t   } | j   Wd  QX|  j d t | j   | d  } |  j | j   d
  | d  } |  j | j   d
  | d  } |  j | j   d  d  S(   Ns   4.2s   y s   4.7s   is inside a codes   5.25s	   range(10)s   6.7t   pys   6.8t    s   7.9s   8.ends	   x.__len__s   9.13s   r'asdf's   9.17s   10.0s   11.3s   11.11R,   (   R#   R-   t   get_expressionR&   R'   R)   R*   R+   (   R   R/   R1   R0   (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt   test_get_expression   s:    	(   R   R   R   t   classmethodR   R   R   R!   R#   R2   R6   R8   R@   RD   (    (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyR      s   							!t   __main__t	   verbosityi   (    (   t   __doc__t   unittestt   test.test_supportR    t   TkinterR   R   t   idlelib.EditorWindowR   t   idlelib.HyperParserR   R   t   TestCaseR   R   t   main(    (    (    s:   /usr/lib64/python2.7/idlelib/idle_test/test_hyperparser.pyt   <module>   s   