File "test_formatparagraph.cpython-33.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python33/lib64/python3.3/idlelib/idle_test/__pycache__/test_formatparagraph.cpython-33.pyc
File size: 17.28 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
f7 c @ s= d d l Z d d l m Z d d l m Z d d l m Z m Z m Z d d l
m 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 Z Gd d d Z Gd d d e j Z e d k r9e j d d d d n d S( i N( u FormatParagraph( u EditorWindow( u Tku Textu TclError( u requiresc B s\ | Ee Z d Z d Z d Z d Z d Z d Z d Z d d Z d d
Z
d d Z d
S( u Is_Get_Testu Test the is_ and get_ functionsu # This is a commentu This is not a commentu # This is a comment u # This is a commentu This is not a commentc C sI | j t j d | j t j d | j t j | j d S( Nu u
( u
assertTrueu fpu is_all_whiteu assertFalseu test_comment( u self( ( uK /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_formatparagraph.pyu test_is_all_white s u Is_Get_Test.test_is_all_whitec C sq | j } | t j | j d | t j | j d | t j | j d | t j | j d d S( Nu u ( u assertEqualu fpu
get_indentu test_commentu trailingws_commentu leadingws_commentu leadingws_nocomment( u selfu Equal( ( uK /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_formatparagraph.pyu test_get_indent s
u Is_Get_Test.test_get_indentc C s | j } | t j | j d | t j | j d | t j | j d | t j | j d | t j | j d d S( Nu #u #u u ( u assertEqualu fpu get_comment_headeru test_commentu trailingws_commentu leadingws_commentu leadingws_nocommentu test_nocomment( u selfu Equal( ( uK /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_formatparagraph.pyu test_get_comment_header s u# Is_Get_Test.test_get_comment_headerN( u __name__u
__module__u __qualname__u __doc__u test_commentu test_nocommentu trailingws_commentu leadingws_commentu leadingws_nocommentu test_is_all_whiteu test_get_indentu test_get_comment_header( u
__locals__( ( uK /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_formatparagraph.pyu Is_Get_Test s u Is_Get_Testc B sP | Ee Z d Z d Z e d d Z d d Z d d Z d d Z d
S( u FindTestu` Test the find_paragraph function in FormatParagraph.
Using the runcase() function, find_paragraph() is called with 'mark' set at
multiple indexes before and inside the test paragraph.
It appears that code with the same indentation as a quoted string is grouped
as part of the same paragraph, which is probably incorrect behavior.
c C s d d l m } | | _ d S( Ni ( u Text( u idlelib.idle_test.mock_tku Textu text( u clsu Text( ( uK /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_formatparagraph.pyu
setUpClass2 s u FindTest.setUpClassc C s | j } | j d | x t d | D]v } t | j d | j d d } xG d | d | f D]2 } d | | f } | j t j | | | qi Wq) W| j d d d S( Nu 1.0i u %d.endu .i i u %d.%du end(
u textu insertu rangeu intu indexu splitu assertEqualu fpu find_paragraphu delete( u selfu
inserttextu stoplineu expectedu textu lineu
linelengthu colu tempindex( ( uK /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_formatparagraph.pyu runcase7 s &$u FindTest.runcasec C s| d } | j | d d d d | d d f d } | j | d d
d d | d d
f d } | j | d d
d d | d d f d } | j | d d
d d | d d f d } | j | d d
d d | d d f d } | j | d d
d d | d d f d } | j | d d
d d | d d f d } | j | d d
d d | d d f d S( Nu; # Comment block with no blank lines before
# Comment line
i u 1.0u 3.0u #i i: uG
# Comment block with whitespace line before and after
# Comment line
i u 2.0u 4.0i iF uS
# Indented comment block with whitespace before and after
# Comment line
u #iR u
# Single line comment
i u4
# Single line comment with leading whitespace
i3 u0
# Comment immediately followed by code
x = 42
i( u=
# Indented comment immediately followed by code
x = 42
i5 u=
# Comment immediately followed by indented code
x = 42
i1 ( u runcase( u selfu comment( ( uK /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_formatparagraph.pyu test_find_commentD s )))))))u FindTest.test_find_commentc C s d } | j | d d d d | d d f d } | j | d d
d d | d d
f d } | j | d d
d d | d d f d } | j | d d
d d | d d f d } | j | d d
d d | d d f d S( Nu6 """String with no blank lines before
String line
"""
i u 1.0u 4.0u i i5 uC
"""String with whitespace line before and after
String line.
"""
i u 2.0u 5.0i iB uV
"""Indented string with whitespace before and after
Comment string.
"""
u iU u
"""Single line string."""
i u 3.0i u8
"""Single line string with leading whitespace."""
i7 ( u runcase( u selfu
teststring( ( uK /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_formatparagraph.pyu test_find_paragraphz s ))))u FindTest.test_find_paragraphN( u __name__u
__module__u __qualname__u __doc__u classmethodu
setUpClassu runcaseu test_find_commentu test_find_paragraph( u
__locals__( ( uK /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_formatparagraph.pyu FindTest( s
6u FindTestc B s&