Add a test to check the behavior when converting two FIAT

This commit is contained in:
Gerald Lonlas 2018-06-02 13:26:24 -07:00
parent 638d98735f
commit e8a59f4c20

View File

@ -133,6 +133,13 @@ def test_fiat_convert_same_currencies(mocker):
assert fiat_convert.get_price(crypto_symbol='USD', fiat_symbol='USD') == 1.0
def test_fiat_convert_two_FIAT(mocker):
patch_coinmarketcap(mocker)
fiat_convert = CryptoToFiatConverter()
assert fiat_convert.get_price(crypto_symbol='USD', fiat_symbol='EUR') == 0.0
def test_loadcryptomap(mocker):
patch_coinmarketcap(mocker)