File: //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/jsonschema/tests/test_cli.pyo
�
���Xc @ s� d d l m Z m Z m Z d d l m Z d d l m Z d d l m Z m
Z
d � Z d e
j f d � � YZ
d e
j f d � � YZ d
S( i����( t Draft4Validatort ValidationErrort cli( t StringIO( t SchemaError( t mockt unittestc s2 t t � � � � d t f � f d � � Y} | S( Nt
FakeValidatorc s) e Z d � Z � f d � Z d � Z RS( c _ s d S( N( ( t selft argst kwargs( ( sJ /opt/alt/python27/lib/python2.7/site-packages/jsonschema/tests/test_cli.pyt __init__ s c s � r � j � Sg S( N( t pop( R t instance( t errors( sJ /opt/alt/python27/lib/python2.7/site-packages/jsonschema/tests/test_cli.pyt iter_errors s
c S s d S( N( ( R t schema( ( sJ /opt/alt/python27/lib/python2.7/site-packages/jsonschema/tests/test_cli.pyt check_schema s ( t __name__t
__module__R R R ( ( R ( sJ /opt/alt/python27/lib/python2.7/site-packages/jsonschema/tests/test_cli.pyR
s ( t listt reversedt object( R R ( ( R sJ /opt/alt/python27/lib/python2.7/site-packages/jsonschema/tests/test_cli.pyt fake_validator s t
TestParserc B s, e Z e � Z d � Z d � Z d � Z RS( c C s� t j � } t j j t d | d t �} | j � | j | j � t j � } i | _
t j d � } | j � | j | j � d S( Nt opent creates json.load( R t mock_opent patchR R t Truet startt
addCleanupt stopt Mockt return_value( R R t
patch_opent mock_json_loadt patch_json_load( ( sJ /opt/alt/python27/lib/python2.7/site-packages/jsonschema/tests/test_cli.pyt setUp s
c C s9 t j d d d d d g � } | j | d | j � d S( Ns --validators2 jsonschema.tests.test_cli.TestParser.FakeValidators
--instances foo.jsons schema.jsont validator( R t
parse_argst assertIsR ( R t arguments( ( sJ /opt/alt/python27/lib/python2.7/site-packages/jsonschema/tests/test_cli.pyt2 test_find_validator_by_fully_qualified_object_name( s c C s6 t j d d d d d g � } | j | d t � d S( Ns --validatorR s
--instances foo.jsons schema.jsonR'