def test_fetching_currency_by_iso_code(self): assert get_currency('USD') == USD assert get_currency(iso='840') == USD assert get_currency(iso=840) == USD
def currency(self): currency = None if self.currency_code: currency = get_currency(self.currency_code) return currency
def test_fetching_currency_by_iso_code(self): assert get_currency("USD") == USD assert get_currency(iso="840") == USD assert get_currency(iso=840) == USD