%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/test/test_macos.pyc

ó
Nêáac@sŒddlZddlmZddlZddlZejdƒZejdZdej	fd„ƒYZ
d„ZedkrˆeƒndS(	iÿÿÿÿN(ttest_supporttMacOSt2t	TestMacOScBs_eZejejjdƒdƒd„ƒZejejjdƒdƒd„ƒZd„Z	RS(s/Developer/Tools/SetFiles'/Developer/Tools/SetFile does not existcCsŸz‡ttjdƒ}|jdƒ|jƒtjdddddtjgƒtjtjƒ\}}|j	|dƒ|j	|dƒWdt
jtjƒXdS(Ntws
s/Developer/Tools/SetFiles-ttABCDs-ctEFGH(topenRtTESTFNtwritetcloset
subprocesstcallRtGetCreatorAndTypetassertEqualtostunlink(tselftfptcrttp((s+/usr/local/lib/python2.7/test/test_macos.pyttestGetCreatorAndTypes


s/Developer/Tools/GetFileInfos+/Developer/Tools/GetFileInfo does not existcCsSz;ttjdƒ}|jdƒ|jƒtjtjddƒtjtjƒ\}}|j|dƒ|j|dƒt	j
dtjgdt	jƒjƒd}d}d}xf|jƒD]X}|jdƒrí|jƒd	d
d	!}n|jdƒr¾|jƒd	d
d	!}q¾q¾W|j|dƒ|j|dƒWdtjtjƒXdS(NRs
RRs/Developer/Tools/GetFileInfotstdoutistype:iÿÿÿÿiscreator:(RRRR	R
RtSetCreatorAndTypeR
RRtPopentPIPEtcommunicatetNonet
splitlinest
startswithtsplitRR(RRRRtdatatln((s+/usr/local/lib/python2.7/test/test_macos.pyttestSetCreatorAndTypes*


cCszîttjdƒ}|jdƒ|jƒtjtjdƒ}|jdƒ|jƒttjdƒ}|jƒ}|jƒ|j|dƒtjtjdƒ}|jdƒ}|jdƒ}|jƒ|j|dƒ|j|dƒWdt	j
tjƒXdS(	NRshello world
s*wbsgoodbye world
trs*rbidt(RRRR	R
RtopenrftreadRRR(RRtrfpRtdata2((s+/usr/local/lib/python2.7/test/test_macos.pyt
testOpenRF?s$





(
t__name__t
__module__tunittestt
skipUnlessRtpathtexistsRR!R((((s+/usr/local/lib/python2.7/test/test_macos.pyR
s
 cCstjtƒdS(N(Rtrun_unittestR(((s+/usr/local/lib/python2.7/test/test_macos.pyt	test_mainZst__main__(
R+ttestRRRt
import_moduleRRtTESTFN2tTestCaseRR0R)(((s+/usr/local/lib/python2.7/test/test_macos.pyt<module>s
P	

Zerion Mini Shell 1.0