def METHOD_NAME(token, units, result):
    assert validate_allowable_unit(token, units) == result
    if result:
        class MySection(MSection):
            numerical = Quantity(
                type=np.dtype(np.float64), dimensionality=token, unit=units[0]
            )
        section = MySection()
        for u in units:
            section.numerical = 1 * ureg.parse_units(u)
    else:
        with pytest.raises(TypeError):
            class MySection(MSection):
                numerical = Quantity(
                    type=np.dtype(np.float64), dimensionality=token, unit=units[0]
                )
            section = MySection()
            for u in units:
                section.numerical = 1 * ureg.parse_units(u)