def test_delete_listen_key(self):
     stream_id = self.ubwa.get_new_uuid_id()
     binance_websocket_api_restclient = BinanceWebSocketApiRestclient(self.ubwa )
     self.assertEqual(str(binance_websocket_api_restclient.delete_listen_key(stream_id, listen_key="invalid_testkey")),
                      "{'code': -2014, 'msg': 'API-key format invalid.'}")
     self.ubwa.show_secrets_in_logs = True
     self.assertEqual(str(binance_websocket_api_restclient.delete_listen_key(stream_id, listen_key="invalid_testkey")),
                      "{'code': -2014, 'msg': 'API-key format invalid.'}")
 def test_rest_jex_com_testnet(self):
     binance_websocket_api_manager = BinanceWebSocketApiManager(exchange="jex.com", high_performance=True)
     BinanceWebSocketApiRestclient(binance_websocket_api_manager)
     binance_websocket_api_manager.stop_manager_with_all_streams()
 def test_rest_binance_com_coin_futures(self):
     binance_websocket_api_manager = BinanceWebSocketApiManager(exchange="binance.com-coin-futures", high_performance=True)
     BinanceWebSocketApiRestclient(binance_websocket_api_manager)
     binance_websocket_api_manager.stop_manager_with_all_streams()
 def test_rest_binance_com_isolated_margin_testnet(self):
     binance_websocket_api_manager = BinanceWebSocketApiManager(exchange="binance.com-isolated_margin-testnet", high_performance=True)
     BinanceWebSocketApiRestclient(binance_websocket_api_manager)
     binance_websocket_api_manager.stop_manager_with_all_streams()
 def test_keepalive_listen_key(self):
     stream_id = self.ubwa.get_new_uuid_id()
     binance_websocket_api_restclient = BinanceWebSocketApiRestclient(self.ubwa )
     self.assertEqual(str(binance_websocket_api_restclient.keepalive_listen_key(stream_id, listen_key="invalid_testkey")),
                      "{'code': -2014, 'msg': 'API-key format invalid.'}")