def test_from_user_accepts_longs(self): l = 311915573212624289544582358376647421533L self.assertEquals(l, int_from_user(l))
def test_checks_zero(self): self.assertEquals(0, int_from_user(0))
def _from_request_impl(self, value): return int_from_user( value, self.min_val, self.max_val, on_error=self._illegal_element)
def _from_request_impl(self, value): return int_from_user(value, self.min_val, self.max_val, on_error=self._illegal_element)