Debian Codegraph @

python/test_data/defs/tests/01-get-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 },
14 "keys": [
15 "key1"
16 ],
17 "xform": "",
18 "backend": "ini",
19 "output": {
20 "exact": "value1"
21 },
22 "stdin": null
23 },
24 {
25 "args": {
26 "filename": "t1.ini",
27 "section": "a",
28 "show_var_name": ""
29 },
30 "keys": [
31 "key2"
32 ],
33 "xform": "",
34 "backend": "ini",
35 "output": {
36 "exact": "key2=value2"
37 },
38 "stdin": null
39 },
40 {
41 "args": {
42 "filename": "t1.ini",
43 "section": "a"
44 },
45 "keys": [
46 "key3"
47 ],
48 "xform": "",
49 "backend": "ini",
50 "output": {
51 "exact": "\t\t val'ue3"
52 },
53 "stdin": null
54 },
55 {
56 "args": {
57 "filename": "t1.ini",
58 "section": "b sect"
59 },
60 "keys": [
61 "key4"
62 ],
63 "xform": "",
64 "backend": "ini",
65 "output": {
66 "exact": "v'alu'e4"
67 },
68 "stdin": null
69 },
70 {
71 "args": {
72 "filename": "t1.ini",
73 "section": "c"
74 },
75 "keys": [
76 "key5"
77 ],
78 "xform": "",
79 "backend": "ini",
80 "output": {
81 "exact": "\t\t# value5"
82 },
83 "stdin": null
84 },
85 {
86 "args": {
87 "filename": "t1.ini",
88 "section": "a"
89 },
90 "keys": [
91 "key1",
92 "key2"
93 ],
94 "xform": "newline-to-space",
95 "backend": "ini",
96 "output": {
97 "exact": "key1=value1 key2=value2 "
98 },
99 "stdin": null
100 },
101 {
102 "args": {
103 "filename": "t1.ini",
104 "section": "a",
105 "hide_var_name": ""
106 },
107 "keys": [
108 "key6",
109 "key2"
110 ],
111 "xform": "newline-to-space",
112 "backend": "ini",
113 "output": {
114 "exact": "value2 value6 "
115 },
116 "stdin": null
117 },
118 {
119 "args": {
120 "filename": "t1.ini",
121 "section": "b sect"
122 },
123 "keys": [
124 "key7"
125 ],
126 "xform": "",
127 "backend": "ini",
128 "output": {
129 "exact": "value7"
130 },
131 "stdin": null
132 },
133 {
134 "args": {
135 "filename": "t1.ini",
136 "section": "longcont"
137 },
138 "keys": [
139 "long"
140 ],
141 "xform": "",
142 "backend": "ini",
143 "output": {
144 "exact": "stuff \tand more stuff\tand even more stuff \tand wheee"
145 },
146 "stdin": null
147 },
148 {
149 "args": {
150 "section": "b sect"
151 },
152 "keys": [
153 "key7"
154 ],
155 "xform": "",
156 "backend": "ini",
157 "output": {
158 "exact": "value7"
159 },
160 "stdin": "t1.ini"
161 },
162 {
163 "args": {
164 "section": "b sect"
165 },
166 "keys": [
167 "key77"
168 ],
169 "xform": "",
170 "backend": "ini",
171 "output": {
172 "exact": ""
173 },
174 "stdin": "t1.ini"
175 },
176 {
177 "args": {
178 "filename": "t4.ini",
179 "section": "x"
180 },
181 "keys": [
182 "key8"
183 ],
184 "xform": "",
185 "backend": "ini",
186 "output": {
187 "exact": "key9=key10=key11"
188 },
189 "stdin": null
190 },
191 {
192 "args": {
193 "filename": "t6.ini"
194 },
195 "keys": [
196 "any",
197 "none"
198 ],
199 "xform": "",
200 "backend": "ini",
201 "output": {
202 "exact": ""
203 },
204 "stdin": null
205 },
206 {
207 "args": {
208 "filename": "t7.ini"
209 },
210 "keys": [
211 "any",
212 "none"
213 ],
214 "xform": "",
215 "backend": "ini",
216 "output": {
217 "exact": "any=key"
218 },
219 "stdin": null
220 },
221 {
222 "args": {
223 "filename": "t8.ini"
224 },
225 "keys": [
226 "any",
227 "none"
228 ],
229 "xform": "",
230 "backend": "ini",
231 "output": {
232 "exact": "any=key"
233 },
234 "stdin": null
235 },
236 {
237 "args": {
238 "filename": "t9.ini"
239 },
240 "keys": [
241 "any",
242 "none"
243 ],
244 "xform": "",
245 "backend": "ini",
246 "output": {
247 "exact": ""
248 },
249 "stdin": null
250 }
251 ]
252 }