Lines Matching full:cd

69         cd = ControlData({'suite': 'foo,bar'}, 'filename')
70 self.assertEqual(set(cd.suite_tag_parts), {'foo', 'bar'})
74 cd = ControlData({}, 'filename')
75 self.assertEqual(cd.suite_tag_parts, [])
91 cd = control_data.parse_control(self.control_tmp.name, True)
92 self.assertEquals(cd.author, "Author")
93 self.assertEquals(cd.dependencies, set(['console', 'power']))
94 self.assertEquals(cd.doc, "doc stuff")
95 self.assertEquals(cd.experimental, False)
96 self.assertEquals(cd.name, "nAmE")
97 self.assertEquals(cd.run_verify, False)
98 self.assertEquals(cd.sync_count, 2)
99 self.assertEquals(cd.time, "short")
100 self.assertEquals(cd.test_class, "kernel")
101 self.assertEquals(cd.test_category, "stress")
102 self.assertEquals(cd.test_type, "client")
103 self.assertEquals(cd.require_ssp, False)
104 self.assertEquals(cd.attributes,
106 self.assertEquals(cd.suite,
123 cd = control_data.parse_control(self.control_tmp.name, True)
124 self.assertEquals(cd.author, "Author")
125 self.assertEquals(cd.dependencies, set(['console', 'power']))
126 self.assertEquals(cd.doc, "doc stuff")
127 self.assertEquals(cd.experimental, False)
128 self.assertEquals(cd.name, "nAmE")
129 self.assertEquals(cd.run_verify, False)
130 self.assertEquals(cd.sync_count, 2)
131 self.assertEquals(cd.time, "short")
132 self.assertEquals(cd.test_class, "kernel")
133 self.assertEquals(cd.test_category, "stress")
134 self.assertEquals(cd.test_type, "client")
135 self.assertEquals(cd.require_ssp, False)
136 self.assertEquals(cd.attributes,
138 self.assertEquals(cd.suite,
140 self.assertEquals(cd.max_result_size_KB, 20000)
190 cd = control_data.parse_control(self.control_tmp.name, True)
191 self.verify_bug_template(cd.bug_template)
198 cd = control_data.parse_control(self.control_tmp.name, True)
199 self.verify_bug_template(cd.bug_template)
206 cd = control_data.parse_control(self.control_tmp.name, True)
207 self.assertFalse(hasattr(cd, 'bug_template'))
221 cd = ControlData({}, 'filename')
222 cd._set_bool('foo', 'False')
223 self.assertEquals(cd.foo, False)
224 cd._set_bool('foo', True)
225 self.assertEquals(cd.foo, True)
226 cd._set_bool('foo', 'FALSE')
227 self.assertEquals(cd.foo, False)
228 cd._set_bool('foo', 'true')
229 self.assertEquals(cd.foo, True)
230 self.assertRaises(ValueError, cd._set_bool, 'foo', '')
231 self.assertRaises(ValueError, cd._set_bool, 'foo', 1)
232 self.assertRaises(ValueError, cd._set_bool, 'foo', [])
233 self.assertRaises(ValueError, cd._set_bool, 'foo', None)
237 cd = ControlData({}, 'filename')
238 cd._set_int('foo', 0)
239 self.assertEquals(cd.foo, 0)
240 cd._set_int('foo', '0')
241 self.assertEquals(cd.foo, 0)
242 cd._set_int('foo', '-1', min=-2, max=10)
243 self.assertEquals(cd.foo, -1)
244 self.assertRaises(ValueError, cd._set_int, 'foo', 0, min=1)
245 self.assertRaises(ValueError, cd._set_int, 'foo', 1, max=0)
246 self.assertRaises(ValueError, cd._set_int, 'foo', 'x')
247 self.assertRaises(ValueError, cd._set_int, 'foo', '')
248 self.assertRaises(TypeError, cd._set_int, 'foo', None)
252 cd = ControlData({}, 'filename')
253 cd._set_set('foo', 'a')
254 self.assertEquals(cd.foo, set(['a']))
255 cd._set_set('foo', 'a,b,c')
256 self.assertEquals(cd.foo, set(['a', 'b', 'c']))
257 cd._set_set('foo', ' a , b , c ')
258 self.assertEquals(cd.foo, set(['a', 'b', 'c']))
259 cd._set_set('foo', None)
260 self.assertEquals(cd.foo, set(['None']))
264 cd = ControlData({}, 'filename')
265 cd._set_string('foo', 'a')
266 self.assertEquals(cd.foo, 'a')
267 cd._set_string('foo', 'b')
268 self.assertEquals(cd.foo, 'b')
269 cd._set_string('foo', 'B')
270 self.assertEquals(cd.foo, 'B')
271 cd._set_string('foo', 1)
272 self.assertEquals(cd.foo, '1')
273 cd._set_string('foo', None)
274 self.assertEquals(cd.foo, 'None')
275 cd._set_string('foo', [])
276 self.assertEquals(cd.foo, '[]')
281 cd = ControlData({}, 'filename')
282 cd._set_option('foo', 'a', options)
283 self.assertEquals(cd.foo, 'a')
284 cd._set_option('foo', 'b', options)
285 self.assertEquals(cd.foo, 'b')
286 cd._set_option('foo', 'B', options)
287 self.assertEquals(cd.foo, 'B')
288 self.assertRaises(ValueError, cd._set_option,
290 self.assertRaises(ValueError, cd._set_option,
292 self.assertRaises(ValueError, cd._set_option,
294 self.assertRaises(ValueError, cd._set_option,
299 cd = ControlData({}, 'filename')
300 cd.set_attributes('suite:bvt')
301 self.assertEquals(cd.attributes, set(['suite:bvt',
303 cd.set_attributes('suite:bvt, subsystem:network')
304 self.assertEquals(cd.attributes, set(['suite:bvt',