

def test_date_auto_today(self):
    schema = schemas.DateField.definition()
    definition = schema.deserialize({
        'name': 'birth',
        'type': 'date',
        'autonow': True,
    })
    validator = schemas.DateField.validation(**definition)
    defaulted = validator.deserialize(None)
    self.assertEqual(datetime.date.today(), defaulted)
    defaulted = validator.deserialize('')
    self.assertEqual(datetime.date.today(), validator)

dataset/ETHPy150Open spiral-project/daybed/daybed/tests/test_schemas_base.py DateFieldTests.test_date_auto_today/VarMisuse@103/125 `defaulted`->`validator`