
    daf'                     `    d dl Z d dlmZmZ  G d d      Z G d dee      Z G d dee      Zy)	    N)PyTestCTestc                       e Zd Zd Zd Zy)TestSeparatorsc           
      L   dgdgg dddddidd	d
g}t        j                  d      }| j                  |      }| j                  |ddd      }| j                  |      }| j                  |      }| j	                  ||       | j	                  ||       | j	                  ||       y )Nblorpiewhoopsz	d-shtaeouz	d-nthiouhzi-vhbjkhnthniftyW   yesF)field	morefieldaT          [
          [
            "blorpie"
          ] ,
          [
            "whoops"
          ] ,
          [] ,
          "d-shtaeou" ,
          "d-nthiouh" ,
          "i-vhbjkhnth" ,
          {
            "nifty" : 87
          } ,
          {
            "field" : "yes" ,
            "morefield" : false
          }
        ]   T)z ,z : )indent	sort_keys
separators)textwrapdedentdumpsloadsassertEqual)selfhexpectd1d2h1h2s          9/root/Python-3.12.4/Lib/test/test_json/test_separators.pytest_separatorszTestSeparators.test_separators   s    [8*b+{Mr]e%@C  " , ZZ]ZZ!tZNZZ^ZZ^QQV$    c                     ddd}| j                  t        | j                  |d       | j                  t        | j                  |d       | j                  t        | j                  |d       y )Nr      )      )   , z: )r   )z,    : )r&   r'   )assertRaises	TypeErrorr   )r   r   s     r   test_illegal_separatorsz&TestSeparators.test_illegal_separators*   s\    aL)TZZ}M)TZZ}M)TZZ~Nr!   N)__name__
__module____qualname__r    r*    r!   r   r   r      s    "%HOr!   r   c                       e Zd Zy)TestPySeparatorsNr+   r,   r-   r.   r!   r   r0   r0   1       r!   r0   c                       e Zd Zy)TestCSeparatorsNr1   r.   r!   r   r4   r4   2   r2   r!   r4   )r   test.test_jsonr   r   r   r0   r4   r.   r!   r   <module>r6      s.     ()O )OX 5~v 4 2ne 2r!   