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