ó FRTc@s=ddlZddlZddlmZddlmZddlmZmZmZddlm Z m Z m Z ddlm Z m Z mZddlmZejƒejdƒZejejƒiad efd „ƒYZd efd „ƒYZd efd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZ defd„ƒYZ!d„Z"d „Z#d!„Z$dd"„Z&d#„Z'd$„Z(d%„Z)d&„Z*d'„Z+d(„Z,d)„Z-e.d*kr9e-ƒndS(+iÿÿÿÿN(tdatetime(tModel(tStringPropertytIntegerPropertytBooleanProperty(tDateTimePropertyt FloatPropertytReferenceProperty(tPasswordPropertyt ListPropertyt MapProperty(tSDBPersistenceErrorttest_dbt TestBasiccBs,eZeƒZeƒZeƒZeƒZ RS(( t__name__t __module__RtnameRtsizeRtfooRtdate(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyR s   t TestFloatcBseZeƒZeƒZRS((RRRRRtvalue(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyRs t TestRequiredcBseZededdƒZRS(trequiredtdefaultR(RRRtTruetreq(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyR"st TestReferencecBseZededdƒZRS(treference_classtcollection_nametrefs(RRRR tref(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyR&st TestSubClasscBseZeƒZRS((RRRtanswer(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyR *st TestPasswordcBseZeƒZRS((RRRtpassword(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyR".stTestListcBseZeƒZeeƒZRS((RRRRR tinttnums(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyR$1s tTestMapcBseZeƒZeƒZRS((RRRRR tmap(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyR'6s tTestListReferencecBseZeƒZeeƒZRS((RRRRR R tbasics(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyR);s t TestAutoNowcBs&eZedeƒZedeƒZRS(t auto_now_addtauto_now(RRRRt create_datet modified_date(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyR+@st TestUniquecBseZedeƒZRS(tunique(RRRRR(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyR0EscCs7tƒ}d|_d|_t|_tjƒ|_tj dƒ|j ƒ|t d(R@RA((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyt test_float`s         cCs!tƒ}|td<|jƒ|S(Nttest_required_t(RR9R8(R@((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyt test_requiredqs   cCs—|stƒ}ntƒ}||_|jƒtjdƒtj|jƒ}|td<|jj|jksrt ‚x|j D]}t j |ƒq|WdS(Ni ttest_reference_tt( RCRRR8R:R;R<R=R9R>RR6R7(R@RAto((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyttest_referencexs      cCs3tƒ}|tdtstr(R@RA((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyt test_passwordŽs      cCsŸtƒ}|tdt isinstanceR%(R@RAtn((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyt test_lists     cCs‘tƒ}|jƒ|td(R@RAtttt((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyttest_list_referenceªs         cCstƒ}dtttjƒƒƒ}||_|jƒ|tdR (R@RRA((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyt test_unique¸s          cCsdtƒ}|jƒ|td(R@RA((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyt test_datetimeÉs     cCs½tjdƒtƒ}tjdƒtƒtjdƒt|ƒtjdƒtƒtjdƒtƒtjdƒtƒtjdƒtƒtjdƒt ƒtjd ƒt ƒdS( NRCRIRLRNRRRWR[RbR_( R6tinfoRCRIRLRNRRRWR[RbR_(tt1((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pyttestÒs$           t__main__(/tloggingR:Rtboto.sdb.db.modelRtboto.sdb.db.propertyRRRRRRRR R tboto.exceptionR t basicConfigt getLoggerR6tsetLeveltDEBUGR9R RRRR R"R$R'R)R+R0RCRGRItNoneRLRNRRRWR[R_RbReR(((s@/opt/freeware/lib/python2.7/site-packages/boto/sdb/db/test_db.pytsF