mò %U²Ic@sÀdkZdklZdkZdkZdkZdeifd„ƒYZdkZdei fd„ƒYZ de fd„ƒYZ dei fd „ƒYZ d „Zed jo eƒndS( N(s test_supporttDictTestcBs¼tZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z d „Z d „Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCs-|itƒhƒ|itƒhj ƒdS(N(tselft assertEqualtdicttassert_(R((t+/data/zmath/lib/python2.4/test/test_dict.pyttest_constructorscCsc|ih ƒ|ihdd<ƒ|ithƒtjƒ|ithdd<ƒtjƒdS(Nii(RRtbooltFalsetTrue(R((Rt test_bool scCs†h}|i|iƒgƒhdd<dd<}|iƒ}|i|idƒƒ|i|idƒƒ|it|idƒdS(Ntaitbi( tdRRtkeystkRthas_keyt assertRaisest TypeErrortNone(RRR ((Rt test_keyss cCs^h}|i|iƒgƒhdd<}|i|iƒdgƒ|it|idƒdS(Nii(R RRtvaluesRRR(RR ((Rt test_valuess cCs^h}|i|iƒgƒhdd<}|i|iƒdgƒ|it|idƒdS(Nii(ii(R RRtitemsRRR(RR ((Rt test_items%s cCsxh}|i|idƒ ƒhdd<dd<}|iƒ}|iƒ|i|ddgƒ|it |iƒdS(NR iR i( R RRRRRtsortRRR(RRR ((Rt test_has_key.s  cCs”h}|id|jƒ|id|jƒhdd<dd<}|id|jƒ|id|jƒ|id|jƒ|it|iƒdS(NR iR itc(R RRRRt __contains__(RR ((Rt test_contains8scCsNh}|it|ƒdƒhdd<dd<}|it|ƒdƒdS(NiR iR i(R RRtlen(RR ((Rttest_lenCscs_hdd<dd<}|i|ddƒ|i|ddƒd|d¶s (iii(R tupdateRRRRtAttributeErrorRR1R/R,R!R4R*R>t ValueError(RR R1R>R4R!((R!Rt test_updatets.(+ + + c sÜ|itidƒhdd<dd<dd<ƒh}|i|idƒ|j ƒ|i|idƒhdd<dd<dd<ƒ|i|iddƒhdd<dd<ƒ|i|igƒhƒd„}|i|i|ƒƒhd d<ƒ|it hid ƒd tfd „ƒY}|i|idƒhdd<ƒ|i|ƒidƒhdd<ƒ|it |idƒƒ|jƒ|it |ƒidƒƒ|jƒd tfd„ƒY}|idƒ}|i|hdd<dd<ƒ|it|tiƒƒ|it tiƒdtfd„ƒY‰dtf‡d†ƒY}|iˆ|id gƒdtf‡d†ƒY}|iˆti|ƒƒdtf‡d†ƒY}|iˆ|id gƒdS(NtabcR R RiiiccsdVdS(Ni((((RtgÇsiitdictlikecBstZRS(N(R$R%(((RREËstmydictcBstZd„ZRS(NcCs tiƒS(N(tUserDict(tcls((Rt__new__Ñs(R$R%RI(((RRFÐstabR!cBstZRS(N(R$R%(((RR!Østbaddict1cstZ‡d†ZRS(Ncs ˆƒ‚dS(N(R!(R(R!(RR2Ûs(R$R%R2((R!(RRKÚstBadSeqcstZd„Z‡d†ZRS(NcCs|S(N(R(R((RR6áscs ˆƒ‚dS(N(R!(R(R!(RR7ãs(R$R%R6R7((R!(RRLàs tbaddict2cstZ‡d†ZRS(Ncs ˆƒ‚dS(N(R!(RR8tvalue(R!(Rt __setitem__és(R$R%RO((R!(RRMès(ii(RRRtfromkeysRR RRDRRREttypeRFtudt isinstanceRGR,R!RKR*RLRM( RR RDRFRMRLRRRERKR!((R!Rt test_fromkeysÀs444. %"%"%"cCs‚hdd<dd<dd<}|i|iƒhdd<dd<dd<ƒ|ihiƒhƒ|it|idƒdS(Niii(R RRtcopyRRR(RR ((Rt test_copyîs!1cCsöh}|i|idƒdjƒ|i|iddƒdƒhdd<dd<}|i|idƒdjƒ|i|iddƒdƒ|i|idƒdƒ|i|iddƒdƒ|it|iƒ|it|idddƒdS(NRiR iR i(R RRtgetRRRR(RR ((Rttest_getôscs-h}|i|idƒdjƒ|idgƒ|i|idƒdjƒ|idgƒidƒ|i|dddƒ|idgƒidƒ|it|dƒdƒ|it |iƒdt fd„ƒY‰d t f‡d †ƒY}|ƒ}d ||