관리-도구
편집 파일: test_shouldwarn.cpython-311.pyc
� �܋f � �x � d dl mZ d dlZd dlmZmZmZmZmZ d dl mZ d dlm Z erdZndZ G d� d e� � ZdS ) � )�TestCaseN)� ShouldWarn�compare�ShouldRaise� ShouldNotWarn� Comparison)� PY_37_PLUS)�ShouldAssert� �,c �\ � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � ZdS )�ShouldWarnTestsc �, � t j d�� � 5 }t t d� � � � 5 t j d� � d d d � � n# 1 swxY w Y d d d � � n# 1 swxY w Y t t |� � d�� � d S )NT��record�foor ��expected)�warnings�catch_warningsr �UserWarning�warnr �len��self�backstops �s/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/testfixtures/tests/test_shouldwarn.py�test_warn_expectedz"ShouldWarnTests.test_warn_expected s � � � $�D� 1� 1� 1� %�X��K��.�.�/�/� %� %�� �e�$�$�$� %� %� %� %� %� %� %� %� %� %� %���� %� %� %� %� %� %� %� %� %� %� %� %� %� %� %���� %� %� %� %� ��H� � ��*�*�*�*�*�*s4 �A+�A�A+�A �A+�A �A+�+A/�2A/c �t � t dt z dz � � 5 t j d�� � 5 }t � � 5 t j d� � d d d � � n# 1 swxY w Y d d d � � n# 1 swxY w Y d d d � � n# 1 swxY w Y t t |� � d�� � d S )NzMsequence not as expected: same: [] expected: [] actual: [UserWarning('foo'�)]Tr r r r )r �commar r r r r r r s r �test_warn_not_expectedz&ShouldWarnTests.test_warn_not_expected sx � � � *� +0� 0� 15� 5� � � )� )� �(��5�5�5� )��"�_�_� )� )��M�%�(�(�(�)� )� )� )� )� )� )� )� )� )� )���� )� )� )� )� )� )� )� )� )� )� )� )� )� )� )���� )� )� )� )� )� )� )� )� )� )� )� )� )� )� )���� )� )� )� )� ��H� � ��*�*�*�*�*�*sX �B�A8� A!�A8�!A%�%A8�(A%�)A8�,B�8A< �<B�?A< � B�B�Bc �V � t � � 5 d d d � � d S # 1 swxY w Y d S )N)r �r s r �test_no_warn_expectedz%ShouldWarnTests.test_no_warn_expected&