Example #1
0
def test_age_band_5_years_BAU_floats(age, expected):
    assert expected == age_bands.age_band_5_years(age)
Example #2
0
def test_age_band_5_years_valueErrors(age):
    with pytest.raises(ValueError):
        age_bands.age_band_5_years(age)
Example #3
0
def test_age_band_5_years_edgeCases(age, expected):
    assert expected == age_bands.age_band_5_years(age)
Example #4
0
def test_age_band_5_years_typeErrors():
    with pytest.raises(TypeError):
        age_bands.age_band_5_years("age")