/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_jsonschema_test_suite.pyc (13378B)
Ñò DVc@sdZddklZddklZddkZddkZddkZddkZddk Z ddk Z ddk Z ddk Z yddk l Z Wnej o dZ nXddklZlZlZlZlZlZlZlZlZddklZddklZlZddkZe ii e ii!ei"ƒe ii#ƒZ$e i%d e ii e$d ƒƒZ&e ii'e&ƒpe(d ƒ‚ne ii e&d ƒZ)e ii e&d dƒZ*e i+de*dgde i,ƒi-Z.ee.ƒi/i0ƒz-eoei1e.ƒZ.nei2e.ƒZ3WdQXd„Z4d„Z5de)dd„Z6de7fd„ƒYZ8de7fd„ƒYZ9d„Z:de7fd„ƒYZ;e i<d9jo d „Z=n d!„Z=e6d"d#e=d$d%ƒe6d&d#e:eƒƒe6d'ƒe6d(ƒd)ei>e8e9e;fd*„ƒYƒƒƒƒZ?e6d+d#e=d$d,ƒe6d-d#e:eƒƒe6d.ƒe6d/ƒd0ei>e8e9e;fd1„ƒYƒƒƒƒZ@d2e7fd3„ƒYZAe6d%ƒd4eAei>fd5„ƒYƒZBe6d,ƒd6eAei>fd7„ƒYƒZCdS(:sº Test runner for the JSON Schema official test suite Tests comprehensive correctness of each draft's validator. See https://github.com/json-schema/JSON-Schema-Test-Suite for details. iÿÿÿÿ(tclosing(tDecimalN(tpypy_version_info( t FormatErrort SchemaErrortValidationErrortDraft3ValidatortDraft4Validatort FormatCheckertdraft3_format_checkertdraft4_format_checkertvalidate(tPY3(tmocktunittesttJSON_SCHEMA_TEST_SUITEtjsonsŸCan't find the JSON-Schema-Test-Suite directory. Set the 'JSON_SCHEMA_TEST_SUITE' environment variable or run the tests from alongside a checkout of the suite.tteststbintjsonschema_suitetpythontremoteststdoutcsV|o‡‡fd†}n‡‡fd†}tp|idƒ}n||_|S(Ncs/t|dhƒ}tˆˆd|i|dS(Ntvalidator_kwargstcls(tgetattrR tvalidator_class(tselftkwargs(tdatatschema(sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyt test_case=sc sPt|dhƒ}|itƒiiƒztˆˆd|i|WdQXdS(NRR(Rt assertRaisesRt__exit__t __enter__R R(RR(RR(sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyRAssutf-8(R tencodet__name__(RRtvalidtnameR((RRsO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyt make_case;s cCsJ|dj o9|||ƒ}|dj oti|ƒ|ƒ}qFn|S(N(tNoneRtskip(R)Rtcasettesttreason((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyt maybe_skipMs   tcs<ˆotiiˆˆƒ‰n‡‡‡‡fd†}|S(Nc szttiˆƒƒ}x^titiiˆˆƒƒD]>}||joq4ntiitii|ƒƒ\}}ti dƒ}t |ƒi i ƒ}zÕ|~}xÅt i|ƒD]´}x«|dD]Ÿ} d|t|ƒtidd| dƒf} t|| ƒ p t| ‚td| dd|dd | d d | ƒ} tˆ| || ƒ} t|| | ƒqÅWq´WWdQXq4W|S( NiRs test_%s_%s_%ss[\W ]+t_t descriptionRRR%R&(tsettglobtiglobtostpathtjointsplitexttbasenamet itertoolstcounttopenR!R"RtloadtnexttretsubthasattrtAssertionErrorR'R-tsetattr( t test_classtignoredtfilenamet validatingR/tidt_[1]t test_fileR*R+R&R(R)tbasedirt tests_globt ignore_glob(sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pytadd_test_methodsYs2 $#      "(R4R5R6(RKRLRJR)RM((RKR)RJRLsO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pytload_json_casesUst TypesMixincBs#eZeiedƒd„ƒZRS(s-In Python 3 json.load always produces unicodecCs!|ihdd6ƒidƒdS(Ntstringttypetfoo(RR (R((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyt$test_string_a_bytestring_is_a_string{s(R$t __module__RtskipIfR RS(((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyROzst DecimalMixincBseZd„ZRS(c Cs»hdd6}|i|dhtttfd6ƒ}x4ddtdƒtdƒgD]}|i|ƒqRWxKdhgtdgD]4}|itƒi i ƒz|i|ƒWdQXqWdS(NtnumberRQttypesigš™™™™™ñ?iRR( RtinttfloatRR tTrueR(R RR!R"(RRt validatorR%tinvalid((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyt"test_it_can_validate_with_decimalss  (R$RTR^(((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyRV€scs‡fd†}|S(Ncse|didƒ}|ˆijodi|ƒS|djo#tdj otd d jodSdS( NRtformatsFormat checker {0!r} not found.s date-timeiii s4datetime.datetime is broken on this version of PyPy.(ii (tgettcheckersR_RR((R*R+R_(tchecker(sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pytmissing_formats  ((RbRc((RbsO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyRcs t FormatMixincBs,eZd„Zd„Zd„Zd„ZRS(cCs0|ihdd6dtƒƒ}|idƒdS(NtcarrotR_tformat_checkertbugs(RRR (RR\((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyt7test_it_returns_true_for_formats_it_does_not_know_aboutŸscCs#|ihƒ}|i|iƒdS(N(Rt assertIsNoneRf(RR\((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyt,test_it_does_not_validate_formats_by_default¥scCsÂtidtƒ}|ihdd6d|ƒ}|idƒ|iiddƒtƒ}tdd|ƒ|i_ |i t ƒi i ƒ}z|~}|idƒWdQX|i|ii|ƒdS(NtspecRRR_Rftbartaoeutcause(R tMockRRR tchecktassert_called_once_witht ValueErrorRt side_effectR RR!R"tassertIst exceptionRn(RRbR\RnRHtcm((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyt2test_it_validates_formats_if_a_checker_is_provided©s  &cCsÝtidtƒ}|ihdd6d|ƒ}|idddgƒ|iidddgdƒtƒ}tdd |ƒ|i_ |i t ƒi i ƒ}z#|~}|idddgƒWdQX|i|ii|ƒdS( NRkRRR_RfiiiRmRn(R RoRRR RpRqRrRRsR RR!R"RtRuRn(RRbR\RnRHRv((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyt%test_it_validates_formats_of_any_type»s &(R$RTRhRjRwRx(((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyRdžs   iiicCsd|djodSdS(Nssupplementary UnicodeR0s:Not running surrogate Unicode case, this Python is narrow.((R*R+((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pytnarrow_unicode_buildÏscCsdS(N((R*R+((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyRyÓss draft3/*.jsonR)RLsdraft3/refRemote.jsonsdraft3/optional/format.jsonsdraft3/optional/bignum.jsons)draft3/optional/zeroTerminatedFloats.jsont TestDraft3cBs6eZeZhed6Zd„Zd„Zd„ZRS(RfcCs-|ihdd6ƒ}|itiƒƒdS(NtanyRQ(RR R Ro(RR\((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyt#test_any_type_is_valid_for_type_anyåsc CsI|itƒiiƒz(thhhtd6d6d|iƒWdQXdS(NR+t propertiesR(R RR!R"R R[R(R((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyttest_invalid_propertiesêsc CsE|itƒiiƒz$tdghdd6d|iƒWdQXdS(Nit1tminItemsR(R RR!R"R R(R((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyttest_minItems_invalid_stringïs( R$RTRRR RR|R~R(((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyRz×s     s draft4/*.jsonsdraft4/refRemote.jsonsdraft4/optional/format.jsonsdraft4/optional/bignum.jsons)draft4/optional/zeroTerminatedFloats.jsont TestDraft4cBs-eZeZhed6Zd„Zd„ZRS(Rfc CsI|itƒiiƒz(thhhtd6d6d|iƒWdQXdS(NR+R}R(R RR!R"R R[R(R((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyR~sc CsE|itƒiiƒz$tdghdd6d|iƒWdQXdS(NiRR€R(R RR!R"R R(R((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyR s(R$RTRRR RR~R(((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyR‚õs   tRemoteRefResolutionMixincBseZd„Zd„ZRS(cCs>tidƒ}|iƒ}|i|i_|i|iƒdS(Nsjsonschema.validators.requests(R tpatchtstarttresolveR`Rst addCleanuptstop(RR„trequests((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pytsetUps cCs5|idƒ\}}}tihti|ƒd6S(Nshttp://localhost:1234/sjson.return_value(t partitionR RotREMOTESR`(Rt referenceR/((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyR†s(R$RTRŠR†(((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyRƒs tDraft3RemoteResolutioncBseZeZRS((R$RTRR(((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyRŽstDraft4RemoteResolutioncBseZeZRS((R$RTRR(((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyR siiÿÿ(Dt__doc__t contextlibRtdecimalRR2RtioR9R4R>t subprocesstsysRt ImportErrorR(t jsonschemaRRRRRRR R R tjsonschema.compatR tjsonschema.tests.compatR RR5R6tdirnamet__file__tpardirt REPO_ROOTtgetenvtSUITEtisdirRrt TESTS_DIRtJSONSCHEMA_SUITEtPopentPIPERtremotes_stdoutR!R"t TextIOWrapperR<RŒR'R-RNtobjectRORVRcRdt maxunicodeRytTestCaseRzR‚RƒRŽR(((sO/tmp/pip-build-lt8jXN/jsonschema/jsonschema/tests/test_jsonschema_test_suite.pyts€         @ *!   % 0    +  +