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

Function test_rawencode

python/ccxt/test/base/test_rawencode.py:17–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15import ccxt.async_support as ccxt # noqa: F402
16
17def test_rawencode():
18 exchange = ccxt.Exchange({
19 'id': 'sampleexchange',
20 })
21 # todo: add sort
22 # todo: add nulls
23 dict2 = {
24 'a': 1,
25 'b': '+&',
26 }
27 # as key-order not preserved, expect mixed orde
28 expected2a = 'a=1&b=+&'
29 expected2b = 'b=+&&a=1'
30 result2 = exchange.rawencode(dict2)
31 assert result2 == expected2a or result2 == expected2b, 'rawencode: expected ' + expected2a + ' or ' + expected2b + ' but got ' + result2

Callers 1

base_tests_initFunction · 0.90

Calls 2

rawencodeMethod · 0.95
ExchangeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…