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