%PDF- %PDF-
Direktori : /lib/python3/dist-packages/jsonschema/tests/__pycache__/ |
Current File : //lib/python3/dist-packages/jsonschema/tests/__pycache__/test_format.cpython-312.pyc |
� `��d� � �p � d Z ddlmZ ddlmZmZmZ ddlmZ e d� Z ed� Zd� Z G d� d e� Zy )zH Tests for the parts of jsonschema related to the :kw:`format` keyword. � )�TestCase)� FormatChecker�FormatError�ValidationError)�Draft4ValidatorzBoom!zBang!c �$ � | dk( rt �t �)N�bang)�BANG�BOOM��things �>/usr/lib/python3/dist-packages/jsonschema/tests/test_format.py�boomr s � ����� � �J� c �H � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zy)�TestFormatCheckerc �R � t d�� }| j |j � y )N� ��formats)r �assertFalse�checkers��self�checkers r �test_it_can_validate_no_formatsz1TestFormatChecker.test_it_can_validate_no_formats s � ���+������)�)�*r c �r � | j t � 5 t dg�� d d d � y # 1 sw Y y xY w)Nzo noesr )�assertRaises�KeyErrorr )r s r �.test_it_raises_a_key_error_for_unknown_formatsz@TestFormatChecker.test_it_raises_a_key_error_for_unknown_formats s/ � � � � �x� (� .��8�*�-� .� .� .�s �-�6c �* � t t j � }| j t j j d� t j d� t � | j t j t |t df�� � y �Nr r )r )�dictr r � addCleanup�pop� cls_checksr �assertEqual)r �originals r �!test_it_can_register_cls_checkersz3TestFormatChecker.test_it_can_register_cls_checkers sf � �� �.�.�/����� �.�.�2�2�F�;�(� � � ��(��.�����"�"����r� �+� r c �� � t � } |j d� t � | j |j t t j t df�� � y r"