HomeSort by relevance Sort by last modified time
    Searched refs:_set_int (Results 1 - 2 of 2) sorted by null

  /external/autotest/client/common_lib/
control_data_unittest.py 157 cd._set_int('foo', 0)
159 cd._set_int('foo', '0')
161 cd._set_int('foo', '-1', min=-2, max=10)
163 self.assertRaises(ValueError, cd._set_int, 'foo', 0, min=1)
164 self.assertRaises(ValueError, cd._set_int, 'foo', 1, max=0)
165 self.assertRaises(ValueError, cd._set_int, 'foo', 'x')
166 self.assertRaises(ValueError, cd._set_int, 'foo', '')
167 self.assertRaises(TypeError, cd._set_int, 'foo', None)
control_data.py 129 def _set_int(self, attr, val, min=None, max=None): member in class:ControlData
167 self._set_int('sync_count', val, min=1)
195 self._set_int('retries', val)
199 self._set_int('job_retries', val)

Completed in 199 milliseconds