관리-도구
편집 파일: test_cli.cpython-37.pyc
B �pSew � @ s� d dl mZ d dlZd dlZd dlZd dlmZmZmZm Z d dl mZ d dlm Z dd� ZG dd � d e�ZG d d� de�ZdS )� )�TestCaseN)�Draft4Validator�ValidationError�cli�__version__)�NativeIO)�SchemaErrorc s$ t t� ��� G � fdd�dt�}|S )Nc s( e Zd Zdd� Z� fdd�Zdd� ZdS )z%fake_validator.<locals>.FakeValidatorc _ s d S )N� )�self�args�kwargsr r �J/opt/alt/python37/lib/python3.7/site-packages/jsonschema/tests/test_cli.py�__init__ s z.fake_validator.<locals>.FakeValidator.__init__c s � r� � � S g S )N)�pop)r �instance)�errorsr r �iter_errors s z1fake_validator.<locals>.FakeValidator.iter_errorsc S s d S )Nr )r �schemar r r �check_schema s z2fake_validator.<locals>.FakeValidator.check_schemaN)�__name__� __module__�__qualname__r r r r )r r r � FakeValidator s r )�list�reversed�object)r r r )r r �fake_validator s r c @ s: e Zd Ze� ZdZdZdd� Zdd� Zdd� Z d d � Z dS )� TestParserzfoo.jsonzschema.jsonc C s | j t_| �ttd� d S )N�open)� fake_openr r Z addCleanup�delattr)r r r r �setUp# s zTestParser.setUpc C s>