def test_serialize_created_at(todo_factory): now = datetime.now(tz=pytz.UTC) todo = todo_factory(created_at=now) vtodo = VtodoWritter(todo).serialize() assert vtodo.get('created') is not None
def test_serialize_dtstart(todo_factory): now = datetime.now(tz=pytz.UTC) todo = todo_factory(start=now) vtodo = VtodoWritter(todo).serialize() assert vtodo.get('dtstart') is not None