import unittest
import datetime as dt
import sjcx-payments.scripts.exchange_rates as exchange_rate
from datetime import timedelta

class ExchangeRates(unittest.TestCase):
    
    def test_btc_sjcx(self):
        date = dt.datetime.now() - timedelta(seconds = 86400)
        btc_sjcx = exchange_rate.btc_sjcx_rate(date)
        self.assertTrue(isinstance(btc_sjcx, float))

    def test_btc_usd(self):
	date = dt.datetime.now() - timedelta(seconds = 86400)
        prev_date = dt.datetime(date.year, date.month, date.day, 0, 0, 0)
        btc_usd = exchange_rate.btc_usd_rate(prev_date)
        self.assertTrue(isinstance(btc_usd, float))

if __name__ == "__main__":
    unittest.main()

@@ -636,52 +636,4 @@
 t))%0A
-%0Aif __name__ == %22__main__%22:%0A    unittest.main()%0A

Update test_exchange_rates.py