def test_with_default(self): field = fields.Boolean(default=True) assert not field.required assert field.__schema__ == {'type': 'boolean', 'default': True}
def test_value(self, value, expected): self.assert_field(fields.Boolean(), value, expected)
def test_defaults(self): field = fields.Boolean() assert not field.required assert field.__schema__ == {'type': 'boolean'}