Example #1
0
 def test_from_user_accepts_longs(self):
     l = 311915573212624289544582358376647421533L
     self.assertEquals(l, int_from_user(l))
Example #2
0
 def test_checks_zero(self):
     self.assertEquals(0, int_from_user(0))
Example #3
0
 def _from_request_impl(self, value):
     return int_from_user(
         value, self.min_val, self.max_val, on_error=self._illegal_element)
Example #4
0
 def _from_request_impl(self, value):
     return int_from_user(value, self.min_val, self.max_val,
                          on_error=self._illegal_element)
Example #5
0
 def test_from_user_accepts_longs(self):
     l = 311915573212624289544582358376647421533L
     self.assertEquals(l, int_from_user(l))
Example #6
0
 def test_checks_zero(self):
     self.assertEquals(0, int_from_user(0))