

def test_int(self):
    schema = schemas.IntField.definition()
    definition = schema.deserialize({
        'name': 'address',
        'type': 'int',
    })
    validator = schemas.IntField.validation(**definition)
    schema.assertEquals(12, validator.deserialize('12'))
    self.assertRaises(colander.Invalid, validator.deserialize, '')
    self.assertRaises(colander.Invalid, validator.deserialize, 'abc')

dataset/ETHPy150Open spiral-project/daybed/daybed/tests/test_schemas_base.py BaseFieldsTests.test_int/VarMisuse@53/65 `self`->`schema`