%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core20/2582/usr/share/subiquity/subiquitycore/ui/tests/__pycache__/
Upload File :
Create Path :
Current File : //snap/core20/2582/usr/share/subiquity/subiquitycore/ui/tests/__pycache__/test_table.cpython-38.pyc

U

K��^W�@sLddlmZddlmZddlmZddlmZmZm	Z	Gdd�de�Z
dS)�)�defaultdict)�TestCase)�Text)�_compute_widths_for_size�ColSpec�TableRowc@sLeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dS)�TestComputeWidthsForSizecCs\g}|D]N}g}|D]2}t|t�s(d}n|\}}|�|td|�f�q|�t|��q|S)N��x)�
isinstance�tuple�appendrr)�selfZsizesZrows�rowZcells�size�span�r�9/usr/share/subiquity/subiquitycore/ui/tests/test_table.py�rowsForContentSizess
z,TestComputeWidthsForSize.rowsForContentSizescCsH|�dgg�}td|tti�d�\}}}|�ddiddf|||f�dS)N�
�drF�rrrr�assertEqual�r�trows�widths�total�has_unpackedrrr�test_simple*s�
�z$TestComputeWidthsForSize.test_simplecCsN|�ddgg�}td|tti�d�\}}}|�dddd�ddf|||f�dS)Nrrr�rr	��Frrrrr�
test_two_cols3s�
�z&TestComputeWidthsForSize.test_two_colscCsZ|�ddgg�}ttdtdd�i�}td||d�\}}}|�ddd�ddf|||f�dS)NrrT�Z
can_shrink�)r	r F�rrrrr�rrZcolspecsrrrrrr�test_two_cols_confined<s��
�z/TestComputeWidthsForSize.test_two_cols_confinedcCsN|�ddgg�}td|tti�d�\}}}|�dddd�ddf|||f�dS)Nrrr r�Frrrrr�test_two_cols_spacingJs�
�z.TestComputeWidthsForSize.test_two_cols_spacingcCsb|�dddgg�}ttdtdd�i�}td||d�\}}}|�dddddd�dd	f|||f�dS)
Nrr�()Zrpadrr �rr	r ���HFr%r&rrr�test_three_cols_spacing_rpadSs��
�z5TestComputeWidthsForSize.test_three_cols_spacing_rpadcCsX|�ddgddgg�}td|tti�d�\}}}|�dddddd�ddf|||f�dS)	N�r r!r�r r$rrr+�Frrrrr�test_no_inherent_width_s
��
�z/TestComputeWidthsForSize.test_no_inherent_widthcCsd|�ddgddgg�}ttdtdd�i�}td||d�\}}}|�ddddd	�dd
f|||f�dS)Nr0rr1r	Tr#�r)rr	r,r-Fr%r&rrr�test_no_inherent_width_confinedws"
���
�z8TestComputeWidthsForSize.test_no_inherent_width_confinedN)�__name__�
__module__�__qualname__rrr"r'r)r/r3r5rrrrrs
			rN)�collectionsrZunittestrZurwidrZsubiquitycore.ui.tablerrrrrrrr�<module>s

Zerion Mini Shell 1.0