/usr/lib/python2.6/site-packages/glanceclient/tests/unit/v2
NameSizeModeActions
fixtures.py92710644editdlrm
fixtures.pyc47250644editdlrm
test_client_requests.py25900644editdlrm
test_client_requests.pyc22970644editdlrm
test_images.py403210644editdlrm
test_images.pyc356700644editdlrm
test_members.py36440644editdlrm
test_members.pyc32300644editdlrm
test_metadefs_namespaces.py255750644editdlrm
test_metadefs_namespaces.pyc145630644editdlrm
test_metadefs_objects.py122780644editdlrm
test_metadefs_objects.pyc74580644editdlrm
test_metadefs_properties.py100720644editdlrm
test_metadefs_properties.pyc65570644editdlrm
test_metadefs_resource_types.py72630644editdlrm
test_metadefs_resource_types.pyc50370644editdlrm
test_metadefs_tags.py50120644editdlrm
test_metadefs_tags.pyc47950644editdlrm
test_schemas.py72460644editdlrm
test_schemas.pyc91210644editdlrm
test_shell_v2.py567370644editdlrm
test_shell_v2.pyc502250644editdlrm
test_tags.py23810644editdlrm
test_tags.pyc22740644editdlrm
test_tasks.py113790644editdlrm
test_tasks.pyc97000644editdlrm
test_versions.py24140644editdlrm
test_versions.pyc18170644editdlrm
__init__.py00644editdlrm
__init__.pyc1670644editdlrm
Edit: /usr/lib/python2.6/site-packages/glanceclient/tests/unit/v2/test_schemas.pyc (9121B)
Ñò stTestSchemaPropertycBs#eZd„Zd„Zd„ZRS(cCs&tidƒ}|id|iƒdS(Ntsize(RtSchemaPropertyt assertEqualR(tselftprop((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyttest_property_minimumEscCs?tidddƒ}|id|iƒ|id|iƒdS(NRRs some quantity(RRRRR(RR((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyttest_property_descriptionIscCsmtidƒ}tiddtƒ}tiddtƒ}|i|iƒ|i|iƒ|i|iƒdS(NRtfooR (RRtFalsetTruet assertTrueR t assertFalse(Rtprop1tprop2tprop3((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyttest_property_is_baseNs (t__name__t __module__RRR%(((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyRDs  t TestSchemacBs,eZd„Zd„Zd„Zd„ZRS(cCsMhdd6hd6}ti|ƒ}|id|iƒ|ig|iƒdS(NtCountryRR (RtSchemaRRR (Rt raw_schematschema((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyttest_schema_minimumXscCsuhdd6hhd6d6}ti|ƒ}|id|iƒ|idgg}|iD]}||iqW~ƒdS(NR)RRR (RR*RRR (RR+R,t_[1]tp((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyttest_schema_with_property^scCs=hdd6hd6}ti|ƒ}|i||iƒƒdS(NR)RR (RR*Rtraw(RR+R,((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyttest_rawdscCs~hdd6hhd6htd6d6d6}ti|ƒ}|i|idƒƒ|i|idƒƒ|i|idƒƒdS(NR)RRR t populationR R(RRR*R tis_base_propertyR!(RR+R,((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyR%is (R&R'R-R0R2R%(((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyR(Ws   tTestControllercBseZd„Zd„ZRS(cCs>tt|ƒiƒtitƒ|_ti|iƒ|_ dS(N( tsuperR5tsetUpRtFakeAPItfixturestapiRt Controllert controller(R((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyR7uscCsl|iidƒ}|id|iƒ|itddgƒtg}|iD]}||iqK~ƒƒdS(NRRR (R<tgetRRtsetR (RR,R.R/((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyttest_get_schemazs(R&R'R7R?(((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyR5ts tTestSchemaBasedModelcBsYeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z RS( cCs5tt|ƒiƒtitiƒtiƒ|_ dS(N( R6R@R7twarlockt model_factoryt_SCHEMAR1RtSchemaBasedModeltmodel(R((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyR7‚scCsOhdd6}|i|ƒ}d|d<|i}d}|it||ƒƒdS(NtfredRtredR s5[{"path": "/color", "value": "red", "op": "replace"}](REtpatchR R(RtobjtoriginalRHtexpected((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyt1test_patch_should_replace_missing_core_properties‡s   cCsOhdd6}|i|ƒ}d|d<|i}d}|it||ƒƒdS(NRFRt10tweights1[{"path": "/weight", "value": "10", "op": "add"}](RERHR R(RRIRJRHRK((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyt&test_patch_should_add_extra_properties“s   cCsVhdd6dd6}|i|ƒ}d|d<|i}d}|it||ƒƒdS(NRFRRMRNt22s5[{"path": "/weight", "value": "22", "op": "replace"}](RERHR R(RRIRJRHRK((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyt*test_patch_should_replace_extra_propertiesŸs   cCsShdd6dd6}|i|ƒ}|d=|i}d}|it||ƒƒdS(NRFRRMRNs%[{"path": "/weight", "op": "remove"}](RERHR R(RRIRJRHRK((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyt)test_patch_should_remove_extra_properties¬s  cCsShdd6dd6}|i|ƒ}|d=|i}d}|it||ƒƒdS(NRFRRGR s$[{"path": "/color", "op": "remove"}](RERHR R(RRIRJRHRK((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyt(test_patch_should_remove_core_properties¹s  cCsOhdd6}|i|ƒ}d|d<|i}d}|it||ƒƒdS(NRFRtcircleRs4[{"path": "/shape", "value": "circle", "op": "add"}](RERHR R(RRIRJRHRK((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyt/test_patch_should_add_missing_custom_propertiesÆs   cCsVhdd6dd6}|i|ƒ}d|d<|i}d}|it||ƒƒdS(NRFRRTRtsquares8[{"path": "/shape", "value": "square", "op": "replace"}](RERHR R(RRIRJRHRK((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyt+test_patch_should_replace_custom_propertiesÒs   cCsUhdd6}|i|ƒ}ddg|d<|i}d}|it||ƒƒdS(NRFRttag1ttag2R s?[{"path": "/tags", "value": ["tag1", "tag2"], "op": "replace"}](RERHR R(RRIRJRHRK((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyttest_patch_should_replace_tagsßs   ( R&R'R7RLRORQRRRSRURWRZ(((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyR@s  (Rt testtoolsRAtglanceclient.testsRtglanceclient.v2RR9R*RRCRtTestCaseRR(R5R@(((sT/tmp/pip-build-cD3xZi/python-glanceclient/glanceclient/tests/unit/v2/test_schemas.pyts<