def _validate_country(country): """Validate the country selection. :param country: The proposed country. :return: None """ if country == '' or country == '--': raise errors.AccountCountryInvalid(accounts.REQUIRED_FIELD_COUNTRY_MSG)
def _validate_country(country): """Validate the country selection. :param country: The proposed country. :return: None """ if country == '' or country == '--': # lint-amnesty, pylint: disable=consider-using-in raise errors.AccountCountryInvalid(accounts.REQUIRED_FIELD_COUNTRY_MSG)