def test_age():
    f = Faker()
    age1 = f.age()
    age2 = f.age()
    ok_(isinstance(age1, int))
    ok_(isinstance(age2, int))
    ok_(age1 >= f.min_age)
    ok_(age1 <= f.max_age)
    f = Faker(min_age=30, max_age=30)
    age1 = f.age()
    age2 = f.age()
    ok_(age1 == age2)
dataset/ETHPy150Open deepthawtz/faker/tests/test_api.py/test_age/original