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

Function test_decode

python/ccxt/test/base/test_encode_decode.py:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def test_decode():
29 exchange = ccxt.Exchange({
30 'id': 'sampleexchange',
31 })
32 input = 'decode-test'
33 encoded = exchange.encode(input)
34 decoded = exchange.decode(encoded)
35 assert decoded == input, 'decoded should be equal to input, got ' + decoded + ' instead of ' + input
36
37
38def test_encode_decode():

Callers 1

test_encode_decodeFunction · 0.85

Calls 3

encodeMethod · 0.95
decodeMethod · 0.95
ExchangeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…