Search.setIndex({docnames:["commands","env","fsasserts","index","tempdir"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["commands.rst","env.rst","fsasserts.rst","index.rst","tempdir.rst"],objects:{"":{testpath:[2,0,0,"-"]},"testpath.MockCommand":{get_calls:[0,2,1,""]},"testpath.tempdir":{NamedFileInTemporaryDirectory:[4,1,1,""],TemporaryWorkingDirectory:[4,1,1,""]},testpath:{MockCommand:[0,1,1,""],assert_calls:[0,3,1,""],assert_isdir:[2,3,1,""],assert_isfile:[2,3,1,""],assert_islink:[2,3,1,""],assert_ispipe:[2,3,1,""],assert_issocket:[2,3,1,""],assert_not_isdir:[2,3,1,""],assert_not_isfile:[2,3,1,""],assert_not_islink:[2,3,1,""],assert_not_ispipe:[2,3,1,""],assert_not_issocket:[2,3,1,""],assert_not_path_exists:[2,3,1,""],assert_path_exists:[2,3,1,""],make_env_restorer:[1,3,1,""],modified_env:[1,3,1,""],tempdir:[4,0,0,"-"],temporary_env:[1,3,1,""]}},objnames:{"0":["py","module","Python module"],"1":["py","class","Python class"],"2":["py","method","Python method"],"3":["py","function","Python function"]},objtypes:{"0":"py:module","1":"py:class","2":"py:method","3":"py:function"},terms:{"case":2,"class":[0,4],"default":[0,1,2],"function":[0,1,3],"new":[1,2],"return":[0,1,4],"true":[1,2],For:[0,1],The:[0,2],These:[0,1,2],Use:[0,1],Using:0,With:2,access:0,add:0,addcleanup:1,added:0,addit:[2,4],all:2,allow:1,also:[0,2],ani:[0,1],anyth:0,api:[0,1],arg:0,argument:[0,4],argv:0,assert:[0,3],assert_cal:0,assert_isdir:2,assert_isfil:2,assert_islink:2,assert_ispip:2,assert_issocket:2,assert_not_isdir:2,assert_not_isfil:2,assert_not_islink:2,assert_not_ispip:2,assert_not_issocket:2,assert_not_path_exist:2,assert_path_exist:2,automat:4,backport:4,bash:1,becaus:4,befor:1,block:0,bufsiz:4,call:[0,1],can:[0,2,4],chang:[0,1],check:[0,2],cleanup:[1,4],close:4,cmd:0,code:[0,1,3],collect:3,command:3,complet:1,contain:[0,4],content:[0,3],context:[0,1,4],copi:4,coroutin:0,creat:[0,4],current:1,cwd:[0,4],def:1,delet:[1,4],determin:0,dict:1,dictionari:[0,1],differ:0,dir:4,directori:[0,2,3],domain:2,don:0,each:0,easi:2,els:0,empti:0,enter:1,env:0,environ:[0,3],error:2,exampl:[1,4],exist:[0,2],exit:[0,1,4],explicitli:4,expos:4,extern:0,fail:2,fals:[1,2],fifo:2,file:[0,2,4],filenam:4,filesystem:3,follow_symlink:2,foo:0,from:0,front:0,get:0,get_cal:0,git:0,given:[0,2],global:0,handl:4,how:0,includ:0,index:3,inform:2,insid:4,instal:3,intend:1,interfac:0,interpret:0,its:1,kei:0,kwd:4,least:0,leav:1,let:0,list:0,made:[0,1],mai:0,make:[1,2],make_env_restor:1,manag:[0,1,4],manipul:3,map:1,messag:2,mock:3,mockcmd:0,mockcommand:0,mode:4,modifi:3,modified_env:1,modul:[0,3,4],msg:2,multipl:0,my_path:1,myfil:[0,4],name:[0,1,2,4],namedfileintemporarydirectori:4,namedtemporaryfil:4,need:4,newenv:1,next:1,none:[0,1,2,4],noth:2,now:4,object:2,often:1,onc:0,one:4,onli:[1,4],open:4,other:1,out:1,over:[0,4],page:3,paramet:0,part:0,pass:[0,2,4],path:[0,1,2],pip:3,pipe:2,platform:2,possibl:1,preced:0,prefer:4,prefix:4,previou:4,process:1,produc:1,provid:2,python:[0,4],pythonpath:1,real:0,record:0,regular:2,reli:0,reopen:4,replac:[0,1],reset:1,rest:4,restor:1,revert:4,run:[0,1],safe:0,same:0,script:0,search:3,self:1,set:4,setup:1,shebang:0,shell:[0,1],should:[0,1],snapshot:1,socket:2,some_function_wrapping_git:0,some_other_funct:0,someth:[0,2],special:2,specif:[1,3],specifi:[0,1,2],start:0,state:[0,1,2],string:0,stuff:4,suffix:4,symlink:2,system:3,take:0,target:2,techniqu:0,tempdir:4,tempfil:4,temporari:[0,3],temporarili:1,temporary_env:1,temporarydirectori:4,temporaryworkingdirectori:4,test:[0,1,2,3],testcas:1,testpath:[0,1,2,4],thei:[0,2],them:0,thi:[0,1,2,4],thing:4,thread:0,time:[0,4],tmpdir:4,tool:0,two:1,type:2,unittest:[0,1],unix:[0,3],upon:4,usag:4,use:[0,1],used:[2,4],useful:1,uses:3,using:1,util:3,valu:1,variabl:[0,3],version:2,wai:1,were:0,what:0,when:[1,2,4],whether:0,which:[0,1,3],whole:[1,4],window:[0,2,4],wipe:1,without:4,work:0,write:4,written:0,you:[0,1,4],your:0},titles:["Mocking system commands","Modifying environment variables","Assertion functions for the filesystem","Testpath","Utilities for temporary directories"],titleterms:{"function":2,assert:2,command:0,directori:4,environ:1,filesystem:2,indic:3,mock:0,modifi:1,specif:2,system:0,tabl:3,temporari:4,testpath:3,unix:2,util:4,variabl:1}})