def testActiveCredits(self): bfep = BitfinexExchangePlugin(self.config) bfep.apiKey = self.apiKey bfep.apiSecret = self.apiSecret bfep.getActiveCredits = MagicMock(return_value=[]) credit = bfep.getActiveCredits() self.assertEqual([], credit)
def testWalletBalances(self): bfep = BitfinexExchangePlugin(self.config) bfep.apiKey = self.apiKey bfep.apiSecret = self.apiSecret balances = bfep.getWalletBalances() print balances self.assertEquals(1, balances[0]['period'])
def testGetActiveOrders(self): bfep = BitfinexExchangePlugin(self.config) bfep.apiKey = self.apiKey bfep.apiSecret = self.apiSecret ticker = bfep.getActiveOrders() print ticker self.assertEquals(1, ticker[0]['period'])