/usr/lib/python2.6/site-packages/jsonschema/tests
NameSizeModeActions
compat.py2150644editdlrm
compat.pyc3910644editdlrm
test_cli.py35750644editdlrm
test_cli.pyc47200644editdlrm
test_exceptions.py133920644editdlrm
test_exceptions.pyc153610644editdlrm
test_format.py21500644editdlrm
test_format.pyc34960644editdlrm
test_jsonschema_test_suite.py96440644editdlrm
test_jsonschema_test_suite.pyc133780644editdlrm
test_validators.py332100644editdlrm
test_validators.pyc376890644editdlrm
__init__.py00644editdlrm
__init__.pyc1480644editdlrm
Edit: /usr/lib/python2.6/site-packages/jsonschema/tests/test_cli.pyc (4720B)
Ņō DVc@sddklZlZlZddklZddklZlZd„Z dei fd„ƒYZ dei fd„ƒYZ d S( i˙˙˙˙(tDraft4ValidatortValidationErrortcli(tStringIO(tmocktunittestcs2ttˆƒƒ‰dtf‡fd†ƒY}|S(Nt FakeValidatorcs eZd„Z‡fd†ZRS(c_sdS(N((tselftargstkwargs((s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pyt__init__ scsˆo ˆiƒSgS(N(tpop(Rtinstance(terrors(s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pyt iter_errors s (t__name__t __module__R R((R (s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pyR s (tlisttreversedtobject(R R((R s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pytfake_validatorst TestParsercBs,eZeƒZd„Zd„Zd„ZRS(cCs†tiƒ}tiitd|dtƒ}|iƒ|i|iƒti ƒ}h|_ tidƒ}|iƒ|i|iƒdS(Ntopentcreates json.load( Rt mock_opentpatchRRtTruetstartt addCleanuptstoptMockt return_value(RRt patch_opentmock_json_loadtpatch_json_load((s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pytsetUps     cCs9tidddddgƒ}|i|d|iƒdS(Ns --validators2jsonschema.tests.test_cli.TestParser.FakeValidators --instancesfoo.jsons schema.jsont validator(Rt parse_argstassertIsR(Rt arguments((s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pyt2test_find_validator_by_fully_qualified_object_name#s  cCs6tidddddgƒ}|i|dtƒdS(Ns --validatorRs --instancesfoo.jsons schema.jsonR$(RR%R&R(RR'((s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pyt!test_find_validator_in_jsonschema.s  (RRRRR#R(R)(((s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pyRs  tTestCLIcBs#eZd„Zd„Zd„ZRS(cCsŠtƒtƒ}}tihtƒd6hd6dgd6dd6d|d|ƒ}|i|iƒƒ|i|iƒƒ|i|d ƒdS( NR$tschemait instancess{error.message}t error_formattstdouttstderri(RRtrunRt assertFalsetgetvaluet assertEqual(RR.R/t exit_code((s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pyttest_successful_validation:s    cCsĨtdddƒ}tƒtƒ}}tiht|gƒd6hd6dgd6dd6d |d |ƒ}|i|iƒƒ|i|iƒd ƒ|i|dƒdS( NsI am an error!R iR$R+R,s"{error.instance} - {error.message}R-R.R/s1 - I am an error!(RRRR0RR1R2R3(RterrorR.R/R4((s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pyttest_unsuccessful_validationJs   cCsĪtdddƒtdddƒg}tdddƒg}tƒtƒ}}tiht||ƒd6hd6ddgd 6d d 6d |d |ƒ}|i|iƒƒ|i|iƒdƒ|i|dƒdS(Nt9R it8t7iR$R+R,s#{error.instance} - {error.message} R-R.R/s1 - 9 1 - 8 2 - 7 (RRRR0RR1R2R3(Rt first_errorst second_errorsR.R/R4((s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pyt/test_unsuccessful_validation_multiple_instances[s   (RRR5R7R=(((s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pyR*9s  N( t jsonschemaRRRtjsonschema.compatRtjsonschema.tests.compatRRRtTestCaseRR*(((s=/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_cli.pyts  %