← Back
Editing: test_capture.cpython-311.pyc
� �@�c� � � � d Z ddlZddlZddlmZ edddddd � � � Zddd �Zdddd�iZddddddd�Z ddiddiddiddiddiddid�Z dZdZej � de� � � � � d� � � Zd � Zej � de� � � � � d!� � � Zej � de� � � � � d"� � � Zd#� Zd$� Zd%� Zd&� Zd'� ZdS )(zTests for IPython.utils.capture� N)�capture� image/png� image/jpeg� image/svg+xml� text/html�application/json�application/javascript)� _repr_png_�_repr_jpeg_� _repr_svg_�_repr_html_�_repr_json_�_repr_javascript_s binarydataz<b>bold</b>)r r � � )�width�heightz<svg>zalert();z{})r r r r r r �png�exists�jpeg�svg�html�js�jsonz hello, stdoutz hello, stderr�method_mimec �j � t j � � }| \ }} t ||� � � � �J �dS )zRichOutput with no argsN)r � RichOutput�getattr)r �rich�method�mimes �B/usr/lib/python3/dist-packages/IPython/utils/tests/test_capture.py�test_rich_output_emptyr# E s? � � ����D��L�F�D� �7�4�� � �"�"�*�*�*�*�*� c �b � t } t }t j | |�� � }|� � � | d k sJ �|� � � | d |d fk sJ �|� � � �J �|� � � �J �|� � � �J �dS )ztest RichOutput basics��data�metadatar r N) � basic_data�basic_metadatar r r r �_repr_latex_r r )r'