Searched refs:minimum (Results 1 - 3 of 3) sorted by relevance
/pkg/src/modules/ |
H A D | config.py | 115 def __init__(self, maximum=None, minimum=None, section=None, prop=None, 118 assert not (minimum is not None and maximum is not None) 120 self.minimum = minimum 124 if self.minimum is not None: 125 return _("'{value}' is less than the minimum " 126 "of '{minimum}' permitted for property " 423 minimum=0, value_map=misc.EmptyDict): 424 assert minimum is None or type(minimum) 438 def minimum(self): member in class:PropInt [all...] |
/pkg/src/modules/client/ |
H A D | options.py | 784 def opts_cb_int(k, api_inst, opts, opts_new, minimum=None): 801 # check the minimum bounds 802 if minimum is not None and v < minimum: 803 err = _("value must be >= {0:d}").format(minimum) 810 opts_cb_int(k, api_inst, opts, opts_new, minimum=0) 963 "minimum": 0}), 1048 (VERBOSE, 0, [], {"type": "integer", "minimum": 0}), 1059 "minimum": 0, "maximum": 0 1091 "minimum" [all...] |
/pkg/src/tests/api/ |
H A D | t_config.py | 327 # Verify minimum works as expected. 328 p = propcls("int", minimum=-1) 329 self.assertEqual(p.minimum, -1) 343 # Verify maximum and minimum work together. 344 p = propcls("int", maximum=1, minimum=-1) 350 # Verify maximum and minimum are copied when object is. 353 self.assertEqual(np.minimum, -1)
|
Completed in 465 milliseconds