
    is                     \   d dl Z d dlZe j                            e j                            e j                            e j                            e j                            e                                                  Zej                            e           d dlm	Z	 d dl
mZ d ZdS )    N)Precise)test_shared_methodsc                    i i i i d}t          j        | ||||           t          j        | ||          }t          |d                                                   }t          |d                                                   }t          |d                                                   }t          j        | |||d           t          j        | |||d           t          j        | |||d           |                     ||          }	|                     |	|          }	t          |          }
t          |          }t          |          }|
|k    s|
|k    sJ d|z               t          dt          |	                    D ]}|	|         }||d         v sJ d|z   dz   |z               ||d         v sJ d|z   d	z   |z               ||d         v sJ d|z   d
z   |z               | 	                    |d         |          }| 	                    |d         |          }| 	                    |d         |          }|J d|z               |J d|z               |J d|z               t          j        |d          sJ d|z               t          j        |d          sJ d|z               t          j        |d          sJ d|z               t          j        ||          }t          j        ||          sJ d|z               d S )N)freeusedtotalinfor   r   r   z4free and total and used codes have different lengthsr   zcode z not in totalz not in freez not in usedztotal is undefinedzfree is undefinedzused is undefined0ztotal is not positivezfree is not positivezused is not positivez!free and used do not sum to total)r   assert_structurelog_templatelistkeysassert_non_emtpy_arrayarray_concatlenrangesafe_stringr   	string_ge
string_add	string_eq)exchangeskipped_propertiesmethodentryformatlog_textcodes_total
codes_free
codes_used	all_codescodes_lengthfree_lengthused_lengthicoder   r   r   sum_free_useds                      a/var/www/html/crypto-bot/backend/venv/lib/python3.11/site-packages/ccxt/test/base/test_balance.pytest_balancer(      s{   	 F (3EvuV\]]]"/&%HHHuW~**,,--KeFm((**++JeFm((**++J.x9KVU`bijjj.x9KVU_aghhh.x9KVU_aghhh%%k:>>I%%i<<I{##Lj//Kj//KK''\[-H-H-H  LB  EM  LM-H-HI1c)nn%% g g|uW~%%%w~'G('R%%%uV}$$$gn~&E&P$$$uV}$$$gn~&E&P$$$$$U7^T::##E&M488##E&M488  "6"A   !4x!?!4x!? ,,PP.E.PPP, s++NN-Ch-NNN+ s++NN-Ch-NNN+*466 66ff8[^f8fff6f!g g    )ossyspathdirnameabspath__file__rootappendccxt.base.preciser   ccxt.test.baser   r(    r)   r'   <module>r5      s    				 



	wrwrwrwrwW_G`G`7a7a'b'bccdd     & % % % % % . . . . . .&g &g &g &g &gr)   