← Back
Editing: test_doccer.cpython-311.pyc
� d�c� � � � d Z ddlZddlZddlmZmZ ddlmZ ej j dk Z dZdZdZ d Zee ed �ZdZd� Zd � Zd� Zej � e d�� � d� � � Zej � e d�� � d� � � ZdS )z@ Some tests for the documenting decorator and support functions � N)�assert_equal�suppress_warnings)�doccer� zBDocstring %(strtest1)s %(strtest2)s %(strtest3)s z Another test with some indentzAnother test, one linez( Another test with some indent)�strtest1�strtest2�strtest3z|Docstring Another test with some indent Another test, one line Another test with some indent c � � t � � 5 } | � t �� � t t j t � � t � � t t j t � � t � � t t j t � � t � � d d d � � d S # 1 swxY w Y d S )N��category) r �filter�DeprecationWarningr r �unindent_string� param_doc1� param_doc2� param_doc3)�sups �>/usr/lib/python3/dist-packages/scipy/misc/tests/test_doccer.py� test_unindentr + s� � � � � � E��� � �.� �/�/�/��V�+�J�7�7��D�D�D��V�+�J�7�7��D�D�D��V�+�J�7�7��D�D�D� E� E� E� E� E� E� E� E� E� E� E� E���� E� E� E� E� E� Es �B B<�<C �C c � � t � � 5 } | � t �� � t j t � � }d d d � � n# 1 swxY w Y t |d t d � � t |d t d � � t |d t d � � d S )Nr r r r )r r r r � unindent_dict�doc_dictr )r �d2s r �test_unindent_dictr 3 s� � � � � � ,��� � �.� �/�/�/� � !�(� +� +��,� ,� ,� ,� ,� ,� ,� ,� ,� ,� ,���� ,� ,� ,� ,� ��J���*�!5�6�6�6���J���*�!5�6�6�6���J���*�!5�6�6�6�6�6s �5A�A�Ac �r � t � � 5 } | � t �� � t j t � � }t j t |� � }t |t � � d}t j |t � � }t |d� � d d d � � d S # 1 swxY w Y d S )Nr zSingle line doc %(strtest1)sz0Single line doc Another test with some indent) r r r r r r � docformat� docstringr �filled_docstring)r �udd� formatted� single_docs r �test_docformatr"