Пример #1
0
def test_correct_int_returned_when_get_avg_age_called_with_arg_male():
    res = PersonService.get_avg_age('male')
    assert res == 51
Пример #2
0
def gender_avg_age(gender):
    try:
        print("{}: {}".format(gender, PersonService.get_avg_age(gender)))
    except OperationalError:
        print('Database is empty please download some persons first')