%PDF- %PDF-
Direktori : /snap/core22/2010/usr/share/subiquity/subiquitycore/tests/__pycache__/ |
Current File : //snap/core22/2010/usr/share/subiquity/subiquitycore/tests/__pycache__/test_netplan.cpython-310.pyc |
o K��^o � @ s8 d dl Z d dlmZmZ d dlmZ G dd� de�ZdS )� N)�SubiTestCase�populate_dir)�configs_in_rootc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�TestConfigsInRootc sP | � � � g d�}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.yamlc S � i | ]}|d �qS )z key: here � ��.0�fr r �8/usr/share/subiquity/subiquitycore/tests/test_netplan.py� <dictcomp> � z6TestConfigsInRoot.test_masked_true.<locals>.<dictcomp>c � g | ] }t j�� |��qS r ��os�path�join�r �p��my_dirr r � <listcomp> � z6TestConfigsInRoot.test_masked_true.<locals>.<listcomp>N��tmp_dirr �assertEqualr )�self�unmasked�maskedr r r �test_masked_true s �z"TestConfigsInRoot.test_masked_truec sJ | � � � g d�}t� dd� |D �� | �� fdd�|D �t� dd�� dS ) z4configs_in_root mask=True should return all configs.)r r r r c S r �zsomeyaml: here r r r r r r r z7TestConfigsInRoot.test_masked_false.<locals>.<dictcomp>c r r r r r r r r r z7TestConfigsInRoot.test_masked_false.<locals>.<listcomp>T)r"