%PDF- %PDF-
Direktori : /lib/python3/dist-packages/hyperlink/test/__pycache__/ |
Current File : //lib/python3/dist-packages/hyperlink/test/__pycache__/test_common.cpython-312.pyc |
� G�_a � �n � d Z ddlmZ ddlmZ ddlmZ G d� de� Z G d� d e� Z G d � de� Z y) z! Tests for hyperlink.test.common � )�Any)�TestCase� )�HyperlinkTestCasec � � e Zd ZdZy)�_ExpectedException�9An exception used to test HyperlinkTestCase.assertRaises.N��__name__� __module__�__qualname__�__doc__� � �</usr/lib/python3/dist-packages/hyperlink/test/test_common.pyr r � � �Cr r c � � e Zd ZdZy)�_UnexpectedExceptionr Nr r r r r r r r r c �: � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z y ) � TestHyperlinkzTests for HyperlinkTestCasec �$ � t d� | _ y )N�run)r �hyperlink_test��selfs r �setUpzTestHyperlink.setUp s � �/��6��r c � �� g ��fd�}| j j t |dd�� | j �dddifg� y)z�HyperlinkTestCase.assertRaises does not raise an AssertionError when given a callable that, when called with the provided arguments, raises the expected exception. c �6 �� �j | |f� t ��N)�appendr )�args�kwargs�called_withs �r �raisesExpectedzCTestHyperlink.test_assertRaisesWithCallable.<locals>.raisesExpected! s �� �����f�~�.�$�$r r T)�keyword)r r% N)r �assertRaisesr �assertEqual)r r$ r# s @r �test_assertRaisesWithCallablez+TestHyperlink.test_assertRaisesWithCallable sR �� � �� %� ���(�(����4� )� � �����y�$�.?�'@�&A�Br c �j � d� } | j j t |� y# t $ r Y yw xY w)z�When given a callable that raises an unexpected exception, HyperlinkTestCase.assertRaises raises that exception. c � � t �r )r �r! r"