(self, exchange)
| 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': |
no test coverage detected