Пример #1
0
 def __init__(self):
     IntegerField.__init__(self, min_value=0, max_value=18446744073709551615)
Пример #2
0
 def __init__(self):
     IntegerField.__init__(self, min_value=-9223372036854775808, max_value=9223372036854775807)
Пример #3
0
 def __init__(self):
     IntegerField.__init__(self, min_value=0, max_value=4294967295)
Пример #4
0
 def __init__(self):
     IntegerField.__init__(self, min_value=-2147483648, max_value=2147483647)
Пример #5
0
def test_integer_validation_too_short():
    field = IntegerField(min_value=150)
    field.validate(FIELD_NAME, TEST_VALUE)
Пример #6
0
def test_integer_validation_too_long():
    field = IntegerField(max_value=50)
    field.validate(FIELD_NAME, TEST_VALUE)
Пример #7
0
def test_integer_validation_success_w_all_checks():
    field = IntegerField(min_value=3, max_value=250)
    field.validate(FIELD_NAME, TEST_VALUE)
Пример #8
0
def test_integer_validation_success_w_min_check():
    field = IntegerField(min_value=3)
    field.validate(FIELD_NAME, TEST_VALUE)
Пример #9
0
def test_integer_validation_success_simple():
    field = IntegerField()
    field.validate(FIELD_NAME, TEST_VALUE)
Пример #10
0
 def __init__(self):
     IntegerField.__init__(self,
                           min_value=-9223372036854775808,
                           max_value=9223372036854775807)
Пример #11
0
 def __init__(self):
     IntegerField.__init__(self,
                           min_value=0,
                           max_value=18446744073709551615)