|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /opt/alt-old/python27/lib/python2.7/site-packages/jsonschema/tests/ |
Upload File : |
� ���Xc @ se d Z d d l m Z m Z d d l m Z m Z m Z d d l m Z d e j f d � � YZ d S( sQ Tests for the parts of jsonschema related to the :validator:`format` property. i����( t mockt unittest( t FormatErrort ValidationErrort FormatChecker( t Draft4Validatort TestFormatCheckerc B sG e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s t j � | _ d S( N( R t Mockt fn( t self( ( sM /opt/alt/python27/lib/python2.7/site-packages/jsonschema/tests/test_format.pyt setUp s c C s# t d d � } | j | j � d S( Nt formats( ( R t assertFalset checkers( R t checker( ( sM /opt/alt/python27/lib/python2.7/site-packages/jsonschema/tests/test_format.pyt test_it_can_validate_no_formats s c C s* | j t � � t d d g � Wd QXd S( NR s o noes( t assertRaisest KeyErrorR ( R ( ( sM /opt/alt/python27/lib/python2.7/site-packages/jsonschema/tests/test_format.pyt. test_it_raises_a_key_error_for_unknown_formats s c C s_ t j j t j d t ��>