← Back
Editing: test_bunch.cpython-311.pyc
� d�c � �j � d dl Z d dlZd dlmZ d dlmZ edg d�ddg� � Z G d� d � � ZdS ) � N)�assert_equal)�_make_tuple_bunch�Result)�x�y�z�w�betac � � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zd� Zd� Zej � dddgdgfddgdgfddgdgfg� � d� � � Zej � ddg d�dgfdddgddgfg� � d� � � Zej � dddgdgfddgdgfg� � d � � � Zej � ddd!gdgfddgd"gfd#dgdgfg� � d$� � � Zd%� Zd&S )'�TestMakeTupleBunchc �8 � t ddddd�� � | _ d S )N� � � �c � �?�r r r r r )r �result��selfs �=/usr/lib/python3/dist-packages/scipy/_lib/tests/test_bunch.py�setup_methodzTestMakeTupleBunch.setup_method s � ��q�A��b�s�;�;�;����� c � � t | j j d� � t | j j d� � t | j j d� � t | j j d� � t | j j d� � d S )Nr r r r r )r r r r r r r r s r �test_attribute_accessz(TestMakeTupleBunch.test_attribute_access sm � ��T�[�]�A�&�&�&��T�[�]�A�&�&�&��T�[�]�A�&�&�&��T�[�]�B�'�'�'��T�[�%�s�+�+�+�+�+r c �` � t | j d d� � t | j d d� � t | j d d� � t | j d d� � t j t d�� � 5 | j d d d d � � d S # 1 swxY w Y d S )Nr r r r ���zindex out of range��match)r r �pytest�raises� IndexErrorr s r � test_indexingz TestMakeTupleBunch.test_indexing s� � ��T�[��^�Q�'�'�'��T�[��^�Q�'�'�'��T�[��^�Q�'�'�'��T�[��_�a�(�(�(� �]�:�-A� B� B� B� � ��K��N�N� � � � � � � � � � � � ���� � � � � � s �B#�#B'�*B'c �l � | j \ }}}t |||fd� � t | j d� � d S �N�r r r )r r )r �x0�y0�z0s r �test_unpackingz!TestMakeTupleBunch.test_unpacking&