config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_textwrap.pyc

³ò
h”Rc@s×ddkZddklZddklZlZlZlZdeifd„ƒYZ	de	fd„ƒYZ
de	fd	„ƒYZd
e	fd„ƒYZdeifd
„ƒYZ
d„ZedjoeƒndS(iÿÿÿÿN(ttest_support(tTextWrappertwraptfilltdedenttBaseTestCasecBs2eZdZd„Zd„Zd„Zd„ZRS(s5Parent class with utility methods for textwrap tests.cCs‰t|tƒoQg}x5tt|ƒƒD]!}|id|||fƒq)Wdi|ƒ}n%t|tƒodt|ƒ}n|S(Ns  %d: %rs
s  %s
(t
isinstancetlisttrangetlentappendtjoint
basestringtrepr(tselfttextintresultti((s./usr/local/lib/python2.5/test/test_textwrap.pytshowscCs3|i||d|i|ƒ|i|ƒfƒdS(Nsexpected:
%s
but got:
%s(tassertEqualsR(RRtexpect((s./usr/local/lib/python2.5/test/test_textwrap.pytcheckscKs&t|||}|i||ƒdS(N(RR(RttexttwidthRtkwargsR((s./usr/local/lib/python2.5/test/test_textwrap.pyt
check_wrap$scCs3|ii|ƒ}|i||d||fƒdS(Ns
expected %r
but got  %r(twrappert_splitR(RRRR((s./usr/local/lib/python2.5/test/test_textwrap.pytcheck_split(s(t__name__t
__module__t__doc__RRRR(((s./usr/local/lib/python2.5/test/test_textwrap.pyRs
			tWrapTestCasecBs¯eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zeio
d„Znd„Zd„ZRS(cCstddƒ|_dS(NRi-(RR(R((s./usr/local/lib/python2.5/test/test_textwrap.pytsetUp1sc	Cs^d}|i|dddddddgƒ|i|d	d
dgƒ|i|d|gƒdS(
Ns=Hello there, how are you this fine day?  I'm glad to hear it!isHello there,show are yous	this fines	day?  I'msglad to hearsit!i*s'Hello there, how are you this fine day?sI'm glad to hear it!iP(R(RR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_simple4s

cCsxd}dddddg}tddtƒ}|i|ƒ}|i||ƒ|i|ƒ}|i|d	i|ƒƒdS(
Ns®This is a paragraph that already has
line breaks.  But some of its lines are much longer than the others,
so it needs to be wrapped.
Some lines are 	tabbed too.
What a mess!
s)This is a paragraph that already has lines'breaks.  But some of its lines are muchs)longer than the others, so it needs to bes-wrapped.  Some lines are  tabbed too.  What asmess!i-tfix_sentence_endingss
(RtTrueRRRR(RRRRR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_whitespaceFs		cCs7tddtƒ}d}dg}|i|i|ƒ|ƒd}dg}|i|i|ƒ|ƒd}|i|i|ƒ|ƒd}d	g}|i|i|ƒ|ƒd
|_ddd
g}|i|i|ƒ|ƒd}dddg}|i|i|ƒ|ƒd|_dg}|i|i|ƒ|ƒdS(Ni<R#s$A short line. Note the single space.s%A short line.  Note the single space.s Well, Doctor? What do you think?s!Well, Doctor?  What do you think?s Well, Doctor?
What do you think?s)I say, chaps! Anyone for "tennis?"
Hmmph!s+I say, chaps!  Anyone for "tennis?"  Hmmph!is
I say, chaps!sAnyone for "tennis?"sHmmph!s1And she said, "Go to hell!"
Can you believe that?sAnd she said, "Go toshell!"  Can yous
believe that?s2And she said, "Go to hell!"  Can you believe that?(RR$RRR(RRRR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_fix_sentence_endings^s.							cCs9d}|i|dddgƒ|i|ddgƒdS(NsThis is a
short paragraph.isThis is a shorts
paragraph.i(sThis is a short paragraph.(R(RR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_wrap_short„s
cCs<d}|i|ddgƒ|i|ddgddƒdS(NsThis is a short line.is(1) This is a short line.tinitial_indents(1) (R(RR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_wrap_short_1lineŽscCsUd}|i|dddgƒ|i|dddgƒ|i|dddgƒdS(	NsBthis-is-a-useful-feature-for-reformatting-posts-from-tim-peters'lyi(sthis-is-a-useful-feature-for-s%reformatting-posts-from-tim-peters'lyi)i*s*this-is-a-useful-feature-for-reformatting-sposts-from-tim-peters'ly(R(RR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_hyphenated˜s

cCsd}|i|ddddgƒ|i|dddgƒd	}|i|d
ddgƒ|i|d
ddgƒ|i|dd	gƒdS(NsRPython 1.0.0 was released on 1994-01-26.  Python 1.0.1 was
released on 1994-02-15.isPython 1.0.0 was released ons1994-01-26.  Python 1.0.1 wassreleased on 1994-02-15.i(s(Python 1.0.0 was released on 1994-01-26.s(Python 1.0.1 was released on 1994-02-15.sI do all my shopping at 7-11.isI do all my shopping ats7-11.ii(R(RR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_hyphenated_numbers¨s



cCsçd}|i|dddgƒ|i|dddgƒdd	g}|i|d
|ƒ|i|d|ƒ|i|ddgƒd
}dddg}|i|d|ƒ|i|d|ƒdddg}|i|d|ƒ|i|d|ƒddg}|i|d|ƒ|i|d|ƒddg}|i|d|ƒ|i|d|ƒd}ddddd dd!d"dd#d d$dd%d&d#dd'g}|i||ƒd(}d#dd)d d*d d+dd,dd-g}|i||ƒdS(.Ns$Em-dashes should be written -- thus.isEm-dashes should beswritten -- thus.isEm-dashes should be writtens-- thus.sEm-dashes should be written --sthus.ii#i$s%You can also do--this or even---this.sYou can also dos--this or evens---this.iisYou can also do--sthis or even---sthis.iisYou can also do--this or evenis You can also do--this or even---i s7Here's an -- em-dash and--here's another---and another!sHere'st tans--sem-tdashtandshere'stanothers---sanother!sand then--bam!--he was gonetthensbam!thetwastgone(RR(RRR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_em_dashºsR

	
				cCs4d}|i|dddddgƒ|i|ddd	d
gƒddg}|i|d
|ƒ|i|d|ƒ|i|d|ƒ|i|d|ƒddg}|i|d|ƒ|i|d|ƒdd
g}|i|d|ƒd}ddddddddddddddg}|i||ƒdS( Ns<You should use the -n option, or --dry-run in its long form.isYou should use thes-n option, or --dry-srun in its longsform.isYou should use the -nsoption, or --dry-runsin its long form.s You should use the -n option, ors--dry-run in its long form.i i"i#i&s'You should use the -n option, or --dry-srun in its long form.i'i)s*You should use the -n option, or --dry-runi*s'the -n option, or --dry-run or --dryrunttheR,s-nsoption,tors--dry-truns--dryrun(RR(RRR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_unix_optionsñs6

			cCs³|iddddddgƒ|iddddgƒ|id	ddd
gƒ|iddgƒ|iddgƒ|id
ddgƒ|idddddddgƒdS(Nswhat the--hey!twhatR,R6s--shey!s
what the--sthe--swhat the--.sthe--.s	--text--.s--options--option-opts	--option-toptsfoo --option-opt bartfootbar(R(R((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_funky_hyphenss	cCsŒ|idddddddgƒ|iddddd	ddgƒ|id
ddddddgƒ|id
ddddddgƒdS(Nsthe 'wibble-wobble' widgetR6R,s'wibble-swobble'twidgetsthe "wibble-wobble" widgets"wibble-swobble"sthe (wibble-wobble) widgets(wibble-swobble)sthe ['wibble-wobble'] widgets	['wibble-swobble'](R(R((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_punct_hyphens$s				c	Csg|iddddddgƒ|iddddddgƒ|id	d
dddddd
gƒdS(Nsfoo (--option) barR<R,s
(--option)R=s
foo (bar) bazs(bar)tbazsblah (ding dong), wubbatblahs(dingsdong),twubba(R(R((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_funky_parens5s			cCs9d}|i|ddgƒ|i|dddgƒdS(Ns, This is a sentence with leading whitespace.i2is This is a sentence withsleading whitespace.(R(RR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_initial_whitespaceBs

cCsŸd}|i|ddgƒ|i|dddgƒ|ii|ƒ}t|tƒot|dtƒpt‚|ii|ƒ}t|tƒpt‚dS(NuHello there, how are you today?i2iuHello there, how ares
you today?i(RRRRRtunicodetAssertionErrorR(RRtolinestotext((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_unicodeLs+cCsbd}|ii|ƒ}|i|dddddddddddd	dd
ddddgƒdS(
Ns0Hello there -- you goof-ball, use the -b option!tHelloR,ttheres--tyousgoof-sball,tuseR6s-bsoption!(RRR(RRR((s./usr/local/lib/python2.5/test/test_textwrap.pyt
test_splitXs
	cCs6d}|itt|dƒ|itt|dƒdS(NsWhatever, it doesn't matter.iiÿÿÿÿ(tassertRaisest
ValueErrorR(RR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_bad_widthcs(RRR!R"R%R&R'R)R*R+R5R9R>R@RDRERthave_unicodeRJRORR(((s./usr/local/lib/python2.5/test/test_textwrap.pyR /s$				&	
	
			7	"			
		

	tLongWordTestCasecBs#eZd„Zd„Zd„ZRS(cCstƒ|_d|_dS(Ns]Did you say "supercalifragilisticexpialidocious?"
How *do* you spell that odd word, anyways?
(RRR(R((s./usr/local/lib/python2.5/test/test_textwrap.pyR!ksc	Csm|i|idddddgƒ|i|idddgƒ|idd
dd
ddddgddƒdS(NisDid you say "supercalifragilissticexpialidocious?" How *do*syou spell that odd word,sanyways?i2s1Did you say "supercalifragilisticexpialidocious?"s*How *do* you spell that odd word, anyways?t-i
thellos
----------s               hs               es               ls               otsubsequent_indentR,is
----------s----------hellos               (RR(R((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_break_longrs 

	cCs~d|i_d|i_ddddg}|ii|iƒ}|i||ƒt|iddddƒ}|i||ƒdS(	NiisDid you says%"supercalifragilisticexpialidocious?"sHow *do* you spell that oddsword, anyways?Rtbreak_long_words(RRYRRRR(RRR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_nobreak_long‰s	(RRR!RXRZ(((s./usr/local/lib/python2.5/test/test_textwrap.pyRTjs		tIndentTestCasescBs,eZd„Zd„Zd„Zd„ZRS(cCs
d|_dS(NsnThis paragraph will be filled, first without any indentation,
and then with some (including a hanging indent).(R(R((s./usr/local/lib/python2.5/test/test_textwrap.pyR!scCs,d}t|idƒ}|i||ƒdS(NsnThis paragraph will be filled, first
without any indentation, and then with
some (including a hanging indent).i((RRR(RRR((s./usr/local/lib/python2.5/test/test_textwrap.pyt	test_fill£scCsrdddg}t|idddƒ}|i||ƒdi|ƒ}t|idddƒ}|i||ƒdS(Ns#     This paragraph will be filled,s'first without any indentation, and thens'with some (including a hanging indent).i(R(s     s
(RRRRR(RRR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_initial_indent¯s	cCs8d}t|idddddƒ}|i||ƒdS(Ns~  * This paragraph will be filled, first
    without any indentation, and then
    with some (including a hanging
    indent).i(R(s  * RWs    (RRR(RRR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_subsequent_indent½s(RRR!R\R]R^(((s./usr/local/lib/python2.5/test/test_textwrap.pyR[šs			tDedentTestCasecBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs|i|t|ƒƒdS(s,assert that dedent() has no effect on 'text'N(RR(RR((s./usr/local/lib/python2.5/test/test_textwrap.pytassertUnchangedÏscCsPd}|i|ƒd}|i|ƒd}|i|ƒd}|i|ƒdS(Ns,Hello there.
How are you?
Oh good, I'm glad.sHello there.

Boo!s Hello there.
  This is indented.sHello there.

  Boo!
(R`(RR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_dedent_nomarginÓs


cCsjd}d}|i|t|ƒƒd}d}|i|t|ƒƒd}d}|i|t|ƒƒdS(Ns'  Hello there.
  How are ya?
  Oh good.s!Hello there.
How are ya?
Oh good.s)  Hello there.

  How are ya?
  Oh good.
s#Hello there.

How are ya?
Oh good.
s+  Hello there.
  
  How are ya?
  Oh good.
(RR(RRR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_dedent_evenäscCsjd}d}|i|t|ƒƒd}d}|i|t|ƒƒd}d}|i|t|ƒƒdS(NsK        def foo():
            while 1:
                return foo
        s+def foo():
    while 1:
        return foo
s  Foo
    Bar

   Baz
sFoo
  Bar

 Baz
s  Foo
    Bar
 
   Baz
(RR(RRR((s./usr/local/lib/python2.5/test/test_textwrap.pyttest_dedent_unevenôscCs<d}d}|i|t|ƒƒ|i|t|ƒƒdS(Ns  hello	there
  how are	you?shello	there
how are	you?(RR(RRR((s./usr/local/lib/python2.5/test/test_textwrap.pyt"test_dedent_preserve_internal_tabs
scCs¦d}|i|ƒd}|i|ƒd}d}|i|t|ƒƒd}|i|t|ƒƒd}|i|t|ƒƒd}d}|i|t|ƒƒdS(	Ns  hello there
	how are you?s!        hello there
	how are you?s	hello there
	how are you?shello there
how are you?s  	hello there
  	how are you?s"  	  hello there
  	  how are you?s   	hello there
  	  how are you?shello there
  how are you?(R`RR(RRR((s./usr/local/lib/python2.5/test/test_textwrap.pyt test_dedent_preserve_margin_tabss

(RRR`RaRbRcRdRe(((s./usr/local/lib/python2.5/test/test_textwrap.pyR_Ís					cCstittttƒdS(N(Rtrun_unittestR RTR[R_(((s./usr/local/lib/python2.5/test/test_textwrap.pyt	test_main1s	t__main__(tunittestttestRttextwrapRRRRtTestCaseRR RTR[R_RgR(((s./usr/local/lib/python2.5/test/test_textwrap.pys<module>s"ÿ<03d	


Man Man