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

Method assert_static_error

python/ccxt/test/tests_sync.py:708–718  ·  view source on GitHub ↗
(self, cond, message, calculated_output, stored_output, key=None)

Source from the content-addressed store, hash-verified

706 exit_script(1)
707
708 def assert_static_error(self, cond, message, calculated_output, stored_output, key=None):
709 # -----------------------------------------------------------------------------
710 # --- Init of static tests functions------------------------------------------
711 # -----------------------------------------------------------------------------
712 calculated_string = json_stringify(calculated_output)
713 stored_string = json_stringify(stored_output)
714 error_message = message
715 if key is not None:
716 error_message = '[' + key + ']'
717 error_message += ' computed: ' + stored_string + ' stored: ' + calculated_string
718 assert cond, error_message
719
720 def load_markets_from_file(self, id):
721 # load markets from file

Calls 1

json_stringifyFunction · 0.90

Tested by

no test coverage detected