MCPcopy Index your code
hub / github.com/ccxt/ccxt / check_constructor

Method check_constructor

python/ccxt/test/tests_async.py:650–658  ·  view source on GitHub ↗
(self, exchange)

Source from the content-addressed store, hash-verified

648 return True
649
650 def check_constructor(self, exchange):
651 # todo: this might be moved in base tests later
652 if exchange.id == 'binance':
653 assert exchange.hostname is None or exchange.hostname == '', 'binance.com hostname should be empty'
654 assert exchange.urls['api']['public'] == 'https://api.binance.com/api/v3', 'https://api.binance.com/api/v3 does not match: ' + exchange.urls['api']['public']
655 assert ('lending/union/account' in exchange.api['sapi']['get']), 'SAPI should contain the endpoint lending/union/account, ' + json_stringify(exchange.api['sapi']['get'])
656 elif exchange.id == 'binanceus':
657 assert exchange.hostname == 'binance.us', 'binance.us hostname does not match ' + exchange.hostname
658 assert exchange.urls['api']['public'] == 'https://api.binance.us/api/v3', 'https://api.binance.us/api/v3 does not match: ' + exchange.urls['api']['public']
659
660 async def test_return_response_headers(self, exchange):
661 if exchange.id != 'binance':

Callers 1

start_testMethod · 0.95

Calls 1

json_stringifyFunction · 0.90

Tested by

no test coverage detected