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
Beispiel #2
0
 def currency(self):
     currency = None
     if self.currency_code:
         currency = get_currency(self.currency_code)
     return currency
Beispiel #3
0
 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
Beispiel #4
0
 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