Esempio n. 1
0
 def test_btc_usd_lowercase(self):
     """Request lowercase written BTC/USD top exchanges should work"""
     cc = CryptoCompare()
     result = cc.get_top_exchanges('btc', 'usd')
     self.assertGreater(len(result), 0)
Esempio n. 2
0
 def test_specific_limit(self):
     """Request top exchanges with a specific limit should return that many exchanges (at most)"""
     cc = CryptoCompare()
     result = cc.get_top_exchanges('BTC', 'USD', limit=10)
     self.assertEqual(len(result), 10)
Esempio n. 3
0
 def test_btc_usd(self):
     """Request BTC/USD top exchanges should work"""
     cc = CryptoCompare()
     result = cc.get_top_exchanges('BTC', 'USD')
     self.assertGreater(len(result), 0)