Пример #1
0
 def test_with_default(self):
     field = fields.Boolean(default=True)
     assert not field.required
     assert field.__schema__ == {'type': 'boolean', 'default': True}
Пример #2
0
 def test_value(self, value, expected):
     self.assert_field(fields.Boolean(), value, expected)
Пример #3
0
 def test_defaults(self):
     field = fields.Boolean()
     assert not field.required
     assert field.__schema__ == {'type': 'boolean'}