def is_over_age(person: Person, age_limit: int) -> Decision: return Decision( name=f"Is {person.first_name} over {age_limit}?", value=person.age() > age_limit, reasoning=f"{person.first_name} is {person.age()}", )
def test_person_age(): per = Person("John", "Smeth", date(2000, 1, 1)) assert per.age() > 17