%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core22/2010/usr/share/subiquity/subiquitycore/tests/__pycache__/
Upload File :
Create Path :
Current File : //snap/core22/2010/usr/share/subiquity/subiquitycore/tests/__pycache__/test_netplan.cpython-310.pyc

o

K��^o�@s8ddlZddlmZmZddlmZGdd�de�ZdS)�N)�SubiTestCase�populate_dir)�configs_in_rootc@s$eZdZdd�Zdd�Zdd�ZdS)�TestConfigsInRootcsP|���gd�}dg}t�dd�||D��|��fdd�|D�t���dS)z<configs_in_root masked=False should not return masked files.)�run/netplan/00base.yaml�lib/netplan/01system.yaml�etc/netplan/99end.yaml�etc/netplan/00base.yamlcS�i|]}|d�qS)z
key: here
���.0�frr�8/usr/share/subiquity/subiquitycore/tests/test_netplan.py�
<dictcomp>�z6TestConfigsInRoot.test_masked_true.<locals>.<dictcomp>c�g|]	}tj��|��qSr��os�path�join�r
�p��my_dirrr�
<listcomp>�z6TestConfigsInRoot.test_masked_true.<locals>.<listcomp>N��tmp_dirr�assertEqualr)�self�unmasked�maskedrrr�test_masked_trues�z"TestConfigsInRoot.test_masked_truecsJ|���gd�}t�dd�|D��|��fdd�|D�t�dd��dS)	z4configs_in_root mask=True should return all configs.)r	rrrcSr
�zsomeyaml: here
rrrrrrrz7TestConfigsInRoot.test_masked_false.<locals>.<dictcomp>crrrrrrrrrz7TestConfigsInRoot.test_masked_false.<locals>.<listcomp>T)r"Nr)r �yamlsrrr�test_masked_falses
�z#TestConfigsInRoot.test_masked_falsecsR|���ddg}ddg}t�dd�||D��|��fdd�|D�t���d	S)
z0configs_in_root should only return *.yaml files.r	rzetc/netplan/ignored.yaml.distzrun/netplan/my.cfgcSr
r$rrrrrr%rz=TestConfigsInRoot.test_only_includes_yaml.<locals>.<dictcomp>crrrrrrrr'rz=TestConfigsInRoot.test_only_includes_yaml.<locals>.<listcomp>Nr)r r%�nonyamlsrrr�test_only_includes_yaml s�z)TestConfigsInRoot.test_only_includes_yamlN)�__name__�
__module__�__qualname__r#r&r(rrrrrs
r)r�subiquitycore.testsrr�subiquitycore.netplanrrrrrr�<module>s

Zerion Mini Shell 1.0