Searched refs:maximum (Results 1 - 2 of 2) 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) 119 self.maximum = maximum 129 if self.maximum is not None: 130 return _("'{value}' is greater than the maximum " 131 "of '{maximum}' permitted for property " 422 def __init__(self, name, default=0, maximum=None, 425 assert maximum is None or type(maximum) 443 def maximum(self): member in class:PropInt [all...] |
/pkg/src/tests/api/ |
H A D | t_config.py | 335 # Verify maximum works as expected. 336 p = propcls("int", maximum=65535) 337 self.assertEqual(p.maximum, 65535) 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. 352 self.assertEqual(np.maximum, 1)
|
Completed in 16 milliseconds