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