Debian Codegraph @

python/test_data/defs/tests/07-match-values.json

raw
1 {
2 "format": {
3 "version": {
4 "major": 2,
5 "minor": 0
6 }
7 },
8 "tests": [
9 {
10 "args": {
11 "filename": "t1.ini",
12 "section": "a",
13 "match_var_values": "value*"
14 },
15 "keys": [
16 "key1"
17 ],
18 "xform": "",
19 "backend": "ini",
20 "output": {
21 "exact": "value1"
22 },
23 "stdin": null
24 },
25 {
26 "args": {
27 "filename": "t1.ini",
28 "section": "a",
29 "match_var_values": "*ue2"
30 },
31 "keys": [
32 "key2"
33 ],
34 "xform": "",
35 "backend": "ini",
36 "output": {
37 "exact": "value2"
38 },
39 "stdin": null
40 },
41 {
42 "args": {
43 "filename": "t1.ini",
44 "section": "a",
45 "match_var_values": "*val'ue*"
46 },
47 "keys": [
48 "key3"
49 ],
50 "xform": "",
51 "backend": "ini",
52 "output": {
53 "exact": "\t\t val'ue3"
54 },
55 "stdin": null
56 },
57 {
58 "args": {
59 "filename": "t1.ini",
60 "section": "b sect",
61 "match_var_values": "*alu*"
62 },
63 "keys": [
64 "key4"
65 ],
66 "xform": "",
67 "backend": "ini",
68 "output": {
69 "exact": "v'alu'e4"
70 },
71 "stdin": null
72 },
73 {
74 "args": {
75 "filename": "t1.ini",
76 "section": "c"
77 },
78 "keys": [
79 "key5"
80 ],
81 "xform": "",
82 "backend": "ini",
83 "output": {
84 "exact": "\t\t# value5"
85 },
86 "stdin": null
87 },
88 {
89 "args": {
90 "filename": "t1.ini",
91 "section": "a",
92 "match_var_values": "*alu*"
93 },
94 "keys": [
95 "key1",
96 "key2"
97 ],
98 "xform": "newline-to-space",
99 "backend": "ini",
100 "output": {
101 "exact": "key1=value1 key2=value2 "
102 },
103 "stdin": null
104 },
105 {
106 "args": {
107 "filename": "t1.ini",
108 "section": "a",
109 "match_var_values": "*7"
110 },
111 "keys": [
112 "key6"
113 ],
114 "xform": "",
115 "backend": "ini",
116 "output": {
117 "exact": ""
118 },
119 "stdin": null
120 },
121 {
122 "args": {
123 "filename": "t1.ini",
124 "section": "b sect",
125 "check_only": "",
126 "match_var_values": "*7"
127 },
128 "keys": [
129 "key7"
130 ],
131 "xform": "",
132 "backend": "ini",
133 "output": {
134 "exit": true
135 },
136 "stdin": null
137 },
138 {
139 "args": {
140 "filename": "t1.ini",
141 "section": "b sect",
142 "check_only": "",
143 "match_var_values": "*7"
144 },
145 "keys": [
146 "key6"
147 ],
148 "xform": "",
149 "backend": "ini",
150 "output": {
151 "exit": false
152 },
153 "stdin": null
154 }
155 ]
156 }