Search.setIndex({docnames:["api/fudge","api/fudge.inspector","api/fudge.patcher","index","javascript","migrating-0.9-to-1.0","using-fudge","why-fudge"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":5,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":3,"sphinx.domains.rst":2,"sphinx.domains.std":2,sphinx:56},filenames:["api/fudge.rst","api/fudge.inspector.rst","api/fudge.patcher.rst","index.rst","javascript.rst","migrating-0.9-to-1.0.rst","using-fudge.rst","why-fudge.rst"],objects:{"":[[0,0,0,"-","fudge"]],"fudge.Fake":[[0,2,1,"","calls"],[0,2,1,"","expects"],[0,2,1,"","expects_call"],[0,2,1,"","has_attr"],[0,2,1,"","has_property"],[0,2,1,"","is_a_stub"],[0,2,1,"","is_callable"],[0,2,1,"","next_call"],[0,2,1,"","provides"],[0,2,1,"","raises"],[0,2,1,"","remember_order"],[0,2,1,"","returns"],[0,2,1,"","returns_fake"],[0,2,1,"","times_called"],[0,2,1,"","with_arg_count"],[0,2,1,"","with_args"],[0,2,1,"","with_kwarg_count"],[0,2,1,"","with_matching_args"],[0,2,1,"","without_args"]],"fudge.inspector":[[1,1,1,"","NotValueInspector"],[1,1,1,"","ValueInspector"]],"fudge.inspector.NotValueInspector":[[1,2,1,"","__call__"]],"fudge.inspector.ValueInspector":[[1,2,1,"","any"],[1,2,1,"","any_value"],[1,2,1,"","contains"],[1,2,1,"","endswith"],[1,2,1,"","has_attr"],[1,2,1,"","isinstance"],[1,2,1,"","passes_test"],[1,2,1,"","startswith"]],"fudge.patcher":[[2,1,1,"","PatchHandler"],[2,3,1,"","patch_object"],[2,3,1,"","patched_context"],[2,3,1,"","with_patched_object"]],"fudge.patcher.PatchHandler":[[2,2,1,"","patch"],[2,2,1,"","restore"]],fudge:[[0,1,1,"","Fake"],[0,1,1,"","FakeDeclarationError"],[0,3,1,"","clear_calls"],[1,0,0,"-","inspector"],[0,3,1,"","patch"],[2,0,0,"-","patcher"],[0,3,1,"","test"],[0,3,1,"","verify"],[0,3,1,"","with_fakes"]]},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:{"0":[1,3,6],"1":[0,1,3,6,7],"10":1,"18657yojgaodfty98618652olkj":1,"2":[0,1,3,6,7],"2004":7,"22":0,"24":0,"25":0,"2to3":3,"3":[0,1,6],"31337":1,"4":3,"5":[0,1,3,6],"6":3,"64":0,"72":6,"7aakkklazuukhkjgh908jkjlkh":1,"8000":4,"9":3,"96":6,"999":0,"break":6,"case":[1,3],"class":[0,1,2,3,6],"do":[0,1,6,7],"final":[2,6],"function":[0,1,3,4,5,6],"import":[0,1,2,3,6],"long":[3,6],"new":[0,2,3,4,6],"return":[0,1,2,3],"short":6,"static":[0,3,6],"switch":7,"true":[0,1,3,4,6],"try":[0,2],"var":4,"while":[0,2,4,5],A:[0,2,3],And:3,As:[1,3,4,7],But:3,For:[0,1,3],If:[0,1,3,4,5,6,7],In:[1,3],It:[0,6,7],NOT:[1,6],Or:0,That:6,The:[0,1,3,6,7],Then:3,There:[3,6],To:[4,6],With:[0,6],__call__:1,__eq__:3,__in__:1,__init__:[0,3],__repr__:1,_kei:1,_patch:3,about:[0,1,3,5,6,7],abov:[0,4],accept:1,accept_kei:1,access:[0,6],acknowledg:3,act:[0,7],action:3,activ:1,actual:6,ad:[0,3],add:6,addressbook:1,adjust:0,advanc:6,affect:0,after:[0,3,5,7],afterward:[0,2],ag:0,al:6,all:[0,1,3,4,5,6,7],allow:[0,1,3,7],allows_any_cal:0,also:[0,1,3,6,7],although:[3,4],alwai:[3,6],am:7,an:[0,1,2,3,4,6],analyz:0,ani:[0,1,3,7],anoth:[2,3],any_valu:[1,3],anyth:[1,5,6,7],api:[5,6],app:[0,2],appli:3,applic:3,approach:[3,7],ar:[0,1,3,6,7],arbitrari:3,aren:[3,6],arg:[0,1,3,6],arg_not:[1,6],argument:[0,1,3],around:2,asdf:[0,1],asleep:0,assert:[0,1,6],assertionerror:[0,1,6],attempt:7,attent:7,attr_nam:2,attribut:[0,1,2,3],attributeerror:0,auth:[0,6],autocommit:1,automat:3,avail:[0,1,3,6],awak:0,baba:1,back:[0,6],bartholomew:0,base:[6,7],becaus:[4,6,7],becom:7,been:[0,3,4,7],befor:[0,2,4],begin:0,behav:3,being:6,benefit:7,bert:6,besid:7,better:3,bill:1,bird:6,block:2,blue:1,bob:[0,1],book:6,bot:6,box:7,brain:7,brook:1,brought:7,bug:3,build:7,built:7,builtin:3,buzz:6,call:[0,1,2,3,5],call_nam:0,callabl:[0,1,3],can:[0,1,2,3,6,7],cannot:0,capon:6,care:[0,1,6],carri:6,cart:6,cascad:[0,3],caus:3,cd:4,certain:[0,3],certainli:7,chain:[0,3,6],chang:[3,5,6],check:[1,6,7],check_us:6,chicago:0,citi:0,cl:1,claim:7,clean:2,cleaner:7,clear:[0,5],clear_cal:[0,3,4,5],clear_expect:[0,5],click:0,clone:3,close:0,co:7,code:[0,3,4,5,6,7],colorpick:1,com:[0,3],combin:0,command:3,common:[0,2],commun:[3,5],comparison:3,compat:3,complet:3,complex:6,config:2,connect:0,consid:0,constructor:0,consumer_kei:6,consumer_secret:6,contain:[1,3],content:6,context:[2,3],continu:5,contributor:3,conveni:[0,2,3],convert:3,copi:4,correctli:7,could:4,couldn:4,count:[0,3],counter:0,cours:[0,7],creat:[0,1,3,7],cristian:3,culprit:3,current_us:6,custom:[1,3],d:7,databas:[2,7],db:[0,1],deal:7,declar:[0,1,3,4,6],decor:[0,2,3,6],def:[0,1,2,6],delet:1,deni:6,depend:3,deprec:[0,1,3,5],describ:0,descript:6,detail:6,develop:7,devic:1,dict:1,did:3,didn:7,differ:0,directli:[0,6],directori:4,dirti:2,dispatch:1,distribut:[3,4],dob:0,dobb:1,doc:7,docstr:[1,6],doctest:7,doe:[1,3,4,6,7],doesn:[5,7],dog:0,domain:7,don:[1,3,5,6],down:6,download:4,dream:0,dsl:7,durat:6,dure:2,dvd:6,dynam:[0,1,6],e:[0,3,4],each:[0,5],easi:7,easier:[3,6],easymock:7,either:[0,5],element:1,els:[1,6],end:[0,1,6],endswith:[0,1,6],engin:7,enough:[0,6],ensur:[1,6],erni:6,error:[0,1,3,6],ersatz:4,esquivia:3,etc:[0,6,7],evolv:5,exact:[0,6],exampl:[0,1,2,4,5,6,7],example2:0,exc:0,exceed:0,except:[0,1,3,6],execut:0,exist:[0,1],expect:[0,1,3,4,7],expect_cal:[0,3],expects_cal:[0,1,3,6],explicitli:3,expos:[0,6],express:[1,3],extens:3,f:[0,6],fagund:3,fail:[0,3],fake:[0,1,2,3,4,7],fake_oauth:6,fake_remov:0,fake_rmtre:0,fake_sess:4,fakedeclarationerror:0,fakeoauthapi:6,fals:[0,1,6],far:7,fast:6,favor:3,featur:7,feel:5,fellow:6,few:0,file:3,filenam:6,filesystem:2,first:[1,3],first_nam:1,fix:[3,7],fizz:6,flexibl:[0,6],flip:7,focu:7,focus:7,follow:6,foobar:[0,1],foord:3,for_method:[0,3],forgot:0,former:3,four:6,frame:0,framework:3,frank:0,freak:6,free:3,from:[0,1,2,3,6],fudg:7,fulli:4,funny_cat6:6,g:4,georg:1,get:[0,3,4,5,6,7],get_count:[0,6],get_id:0,get_numb:0,getter:[0,3],gif:6,git:3,github:3,given:[0,1],go:0,gob:7,goe:3,good:6,gottfri:0,great:5,greatli:3,green:1,guess:0,gz:3,ha:[1,3,4,5,7],had:[3,4],handler:2,hard:[1,7],harri:0,has_attr:[0,1,3,6],has_properti:[0,3],have:[0,1,3,5,6,7],hei:6,hello:[0,6,7],henri:1,here:[0,2,3,4,5,6,7],hieronymu:0,higher:3,hijack:3,hit:0,honestli:7,how:[0,2,3,4,6,7],howev:7,html:4,http:[0,3,4,6],i:[0,3,4,7],id:6,idea:[3,4],ignor:[0,1],imag:[1,6],image_hit:0,imagin:7,implement:[4,7],import_:1,importerror:3,improv:3,incorrectli:3,increment:0,independ:6,indic:3,infinit:[0,6],inform:3,inherit:1,inject:3,input:[3,5],insert:[0,1],inspect:[0,1,3,7],inspector:[0,3,6],inspir:3,instanc:[0,1,2,3,6],instanti:6,instead:[0,1,5,6,7],interact:7,interfac:[3,7],internet:6,introduc:5,invert:[1,6],invok:1,is_a_stub:[0,3,6],is_cal:[0,3,6],is_logged_in:6,is_valid:1,isinst:[1,3],isn:6,isolation_level:[0,1],issu:3,item:1,iter:6,its:[0,6,7],itself:[0,3,4],jame:1,javascript:3,jazz:1,jeremi:3,jim:0,jmock:[3,7],job:1,joe:0,joe_us:0,john:1,jpeg:6,jpg:[1,6],jqueri:4,js:4,just:[1,3,5,6,7],jython:3,kei:4,kent:3,keychain:1,keyword:[0,3,6],kumar:3,kwarg:0,lambda:[0,1],languag:7,last:[0,1,3,6],last_nam:1,lastnam:6,later:2,lazili:6,least:1,leav:6,let:6,level:[2,5],librari:4,licens:3,lieu:3,like:[0,3,4,6,7],likewis:6,list:[1,3,6],list_packag:6,ll:[0,3,5],localhost:4,lock:[0,1],logic:7,login:0,longer:[3,5],look:[4,5,6,7],loos:[3,6],looser:0,lot:3,low:2,lui:3,m:7,made:0,mai:[0,1,2,6],maintain:[3,6,7],mainten:7,make:[0,1,6],manag:[0,2,3,5,7],mani:[0,3,5],manual:[0,5],match:[0,1,6],mcmillan:3,me:[6,7],mean:[0,3],memor:2,mention:[4,7],messag:3,met:[0,6],method:[0,1,2,3,4,5,7],michael:3,might:[3,6],migrat:3,mike:3,mileag:0,minimock:7,miss:7,mistak:6,mit:3,mkname:1,mnemon:1,mocha:[3,4,7],mock:[0,3,6],mock_ag:0,mock_nam:0,mocker:7,mode:7,model:6,modifi:3,modul:[0,2,3,5,6],monkei:6,more:[0,1,2,3,7],mortem:7,most:[0,1,6,7],move:[3,5],mox:7,msg:6,much:[1,3,4,5,7],multipl:[0,1,2,3],musician:1,must:0,my:[4,7],n:0,name:[0,6],natur:0,necessari:0,need:[0,1,3,4,5,6,7],never:0,next:0,next_cal:[0,3,6],none:0,nonsens:6,note:[0,2,3,4,6],notic:[6,7],notvalueinspector:1,now:[0,3,6,7],nowher:7,number:0,oauth_token:6,oauth_token_secret:6,oauthapi:6,oauthtwitt:6,obj:[2,7],obj_path:0,object:[0,1,2,3,4,7],obscur:3,observ:7,off:6,old:[3,5,7],onc:[0,2,3,7],one:[0,1,3,4,6],ones:3,onli:[0,1,3,4,6],oollk:1,open:[0,3,4],oppos:0,opposit:[0,1,6],option:6,order:[0,3],order_bi:6,org:[0,3,6],orig_object:2,os:0,other:[0,1,6,7],other_cal:[0,3],other_nam:0,otherwis:0,out:[0,6,7],over:7,overhead:7,overload:3,overrid:0,own:[1,4],p:2,package_releas:6,paramet:0,part:[0,1],partial:4,pass:[0,1,6],passes_test:1,password:0,patch:[0,2,3,4],patch_object:2,patched_context:[2,3],patched_sess:2,patched_valu:2,patcher:[3,6],patchhandl:2,path:[0,2,3],pattern:3,paul:1,perform:1,pip:3,place:7,placehold:1,plain:7,playback:[3,7],pleas:3,pmock:7,point:[3,7],port:4,posit:[0,6],possibl:0,post:7,post_msg_to_twitt:6,practic:7,prefac:6,prefer:3,present:1,pretti:[1,4],previous:0,print:[2,6],probabl:[0,1,3,5,6,7],problem:7,product:4,proper:3,properti:0,prototyp:4,provid:[0,1,3,6],py:[3,4],pymock:7,pypi:[3,6],python3:3,python:[0,4,6,7],queri:[0,1,6],quick:4,qwerti:1,r:2,rainbow:6,rais:[0,3,6],re:7,readabl:[0,3,7],real:[0,3,7],realli:7,reason:0,recent:[0,1,6],record:[3,7],red:1,reddish:1,redefin:0,refer:4,regist:0,releas:3,remember_ord:[0,3,6],remov:[0,3],replac:[0,3,7],replic:1,report:3,repr:1,represent:3,request:6,requir:[3,4],reset:0,resolut:6,restor:2,retry_on_error:0,returns_fak:[0,3,6],rid:7,right:[0,6],ringo:1,rmtree:0,rubi:7,run:[2,3,4,6],s:[0,1,3,4,6,7],safer:3,sai:[6,7],same:[0,3,6,7],satterfield:3,save:[1,2,6],saw_landing_pag:4,scenario:[0,2,6],sceneri:7,script:4,see:[0,1,2,3,6,7],seem:7,seen:6,select:1,self:[0,1],send:0,send_msg:6,sendmail:[3,7],sens:1,sent:[3,6],separ:7,sequenc:6,seriou:6,server:6,servic:[3,7],sess:0,session:[0,2,4,6,7],session_strategi:2,set:[0,2,3,4,6],set_count:[0,6],set_id:0,set_statu:1,settabl:3,setter:0,setup:[0,3],share:0,shop:6,shorten:3,should:[0,1,3,6],show:[2,7],show_secret_word:6,show_secret_word_for_us:6,shutil:0,simpl:[3,4],simpler:[3,5,7],simplifi:3,simul:3,sinc:[1,6,7],site:7,sleep:1,smtp:3,smtplib:3,so:[0,2,3,4,7],solv:7,some:[0,1,5,6,7],someth:[0,4,6],sometim:6,sourc:4,spawn:6,specif:[0,1,3,7],specifi:[0,1,6],spent:7,sqlalchemi:6,src:4,stack:0,start:[0,1,3,4,7],startswith:1,startup:4,state:2,statement:[2,3],statu:[0,1],step:3,steve:[0,1],still:[3,7],stop:3,store:0,str:1,strict:3,string:6,stub:[0,3,7],stuff:0,subel:1,submit:3,subsequ:0,substr:1,suffici:6,suffix:1,summari:5,support:3,suppos:7,sure:[1,7],sweet:6,system:1,t:[1,3,4,5,6,7],tabl:0,tag:4,take:[0,1,4,5],tar:3,tast:7,technic:3,techniqu:7,tell:7,tempfil:1,temporarili:[2,6],test:[0,1,2,3,4,7],test_fudg:4,test_msg:6,test_secret_word:6,testserv:4,text:4,than:[0,7],thank:3,thei:[3,6,7],them:[0,1,3],thi:[0,1,2,3,4,5,6,7],thing:[1,6,7],those:[0,6],thought:7,three:6,tight:6,time:[0,6],times_cal:[0,3],tmp:[1,6],tmpfile:1,togeth:0,too:[3,7],tool:[3,7],total:6,traceback:[0,1,3,6],transact:[0,1],travers:3,trump:3,tupl:3,turn:0,twitter:6,two:[6,7],type:[3,4],typic:7,under:[0,2,3],unexpect:1,unexpectedli:[0,1],unicorn:6,unittest:[0,5],unknown:0,unless:0,unlik:[0,3],unnam:0,until:[0,6,7],up:[0,3,6,7],updat:[0,1,3,5],updatestatu:6,upon:7,us:[0,1,2,3,4,5,7],usag:[3,6],user:[0,1,6],user_profile_hit:0,usernam:[0,6],usual:6,util:2,val:0,valu:[0,1,2,3,4],valueerror:0,valueinspector:1,variabl:0,variou:6,ve:[6,7],veri:[1,6,7],verifi:[0,1,3,4,5,6],versa:3,version:[1,3,4,5,6,7],vice:3,wa:[0,1,3,6,7],wai:[3,6,7],want:[0,1,2,3,4,5,6,7],warn:3,web:[3,7],webroot:4,webserv:4,were:[0,3,7],wexter:0,what:[3,4,7],when:[0,1,3,5,6,7],where:[3,5,6],wherebi:7,which:[3,6,7],why:[0,3],williamson:3,with_arg:[0,1,3,4,6],with_arg_count:[0,6],with_fak:[0,5],with_kwarg_count:0,with_matching_arg:[0,3],with_patched_object:2,within:[0,3,5],without:3,without_arg:[0,3,6],won:3,word:[1,6],work:[0,1,2,3,4],worker:7,world:7,worri:[5,6],worth:7,would:[0,2,3,6,7],wrap:5,wrapper:2,write:[3,4,7],x:[1,3,5],xmlrpclib:6,ye:7,yet:[3,4],you:[0,1,2,3,4,5,6,7],your:[0,1,2,3,4,5,6,7],yourapp:4},titles:["fudge","fudge.inspector","fudge.patcher","Fudge Documentation","Fudge For JavaScript","Migrating from Fudge 0.9 to 1.0","Using Fudge","Why Another Mock Framework?"],titleterms:{"0":5,"1":5,"3":3,"9":5,"case":6,"new":5,"return":6,A:6,For:4,The:5,allow:6,ani:6,anoth:7,api:3,argument:6,attribut:6,call:6,cascad:6,changelog:3,complet:6,content:3,contribut:3,credit:3,declar:5,decor:5,depend:6,document:3,download:3,expect:[5,6],fake:6,framework:7,from:5,fudg:[0,1,2,3,4,5,6],inject:6,inspector:1,instal:[3,4],javascript:4,method:6,migrat:5,mock:7,multipl:6,object:6,order:6,patch:[5,6],patcher:2,python:3,refer:3,replac:6,servic:6,setup:5,simpl:6,sourc:3,specif:6,stub:6,test:[5,6],us:6,usag:4,valu:6,web:6,were:5,why:7,without:6,work:6}})