def ValidateCurrencyType(self, problems):
    if util.IsEmpty(self.currency_type):
      problems.MissingValue("currency_type")
    elif self.currency_type not in util.ISO4217.codes:
      problems.InvalidValue("currency_type", self.currency_type)
dataset/ETHPy150Open google/transitfeed/transitfeed/fareattribute.py/FareAttribute.ValidateCurrencyType/original