summaryrefslogtreecommitdiff
path: root/reconfigure/tests/configs/resolv_tests.py
blob: 37854e34ab0b4e36ad685b38f0bd9bac8f364d16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from reconfigure.configs import ResolvConfig
from reconfigure.tests.configs.base_test import BaseConfigTest


class ResolvConfigTest (BaseConfigTest):
    sources = {
        None: """nameserver 1
domain 2
search 3 5
"""
    }
    result = {
        'items': [
            {
                'name': 'nameserver',
                'value': '1',
            },
            {
                'name': 'domain',
                'value': '2',
            },
            {
                'name': 'search',
                'value': '3 5',
            },
        ]
    }
    config = ResolvConfig


del BaseConfigTest