. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 162.0.212.4 / Your IP :
216.73.216.221 [
Web Server : LiteSpeed System : Linux premium146.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : alshnoli ( 2431) PHP Version : 8.3.28 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python37/lib/python3.7/site-packages/jsonschema/tests/__pycache__/ |
Upload File : |
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>