MCPcopy Create free account
hub / github.com/ccxt/ccxt / assert_non_equal

Function assert_non_equal

python/ccxt/test/exchange/base/test_shared_methods.py:264–271  ·  view source on GitHub ↗
(exchange, skipped_properties, method, entry, key, compare_to, allow_null=True)

Source from the content-addressed store, hash-verified

262
263
264def assert_non_equal(exchange, skipped_properties, method, entry, key, compare_to, allow_null=True):
265 if key in skipped_properties:
266 return
267 log_text = log_template(exchange, method, entry)
268 value = exchange.safe_string(entry, key)
269 assert value is not None or allow_null, 'value is null' + log_text
270 if value is not None:
271 assert not Precise.string_eq(value, compare_to), string_value(key) + ' key (with a value of ' + string_value(value) + ') was expected not to be equal to ' + string_value(compare_to) + log_text
272
273
274def assert_in_array(exchange, skipped_properties, method, entry, key, expected_array, allow_null=True):

Callers 1

check_precision_accuracyFunction · 0.85

Calls 4

log_templateFunction · 0.85
string_valueFunction · 0.85
safe_stringMethod · 0.80
string_eqMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…