
    daf                      l    d dl Z d dlm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)StringIO)PyTestCTestc                       e Zd Zd Zd Zy)
TestIndentc           
         dgdgg dddddidd	d
g}t        j                  d      }| j                  |      }| j                  |ddd      }| j                  |ddd      }| j                  |dd      }| j                  |dd      }| j                  |      }| j                  |      }	| j                  |      }
| j	                  ||       | j	                  |	|       | j	                  |
|       | j	                  ||j                  d             | j	                  ||       | j	                  ||       | j	                  ||       y )Nblorpiewhoopsz	d-shtaeouz	d-nthiouhzi-vhbjkhnthniftyW   yesF)field	morefielda3          [
        	[
        		"blorpie"
        	],
        	[
        		"whoops"
        	],
        	[],
        	"d-shtaeou",
        	"d-nthiouh",
        	"i-vhbjkhnth",
        	{
        		"nifty": 87
        	},
        	{
        		"field": "yes",
        		"morefield": false
        	}
        ]   T),z: )indent	sort_keys
separators	)r   r   )textwrapdedentdumpsloadsassertEqual
expandtabs)selfhexpectd1d2d3d4d5h1h2h3s              5/root/Python-3.12.4/Lib/test/test_json/test_indent.pytest_indentzTestIndent.test_indent   sC   [8*b+{Mr]e%@C  " * ZZ]ZZ!tZLZZ$$;ZOZZ!tZ4ZZ$$Z7ZZ^ZZ^ZZ^QQQV..q12V$R R     c                 @     ddi fd} |dd        |d d       y )N      c                     j                  |       }j                  ||       t               }j                  j	                  ||        j                  |j                         |       y )N)r   )r   r   r   jsondumpgetvalue)r   expectedr   sior   r   s       r'   checkz&TestIndent.test_indent0.<locals>.check4   sX    Af-BR**CIINN1c&N1S\\^X6r)   r   z
{
"3": 1
}z{"3": 1} )r   r3   r   s   ` @r'   test_indent0zTestIndent.test_indent02   s'    F	7 	a dJr)   N)__name__
__module____qualname__r(   r5   r4   r)   r'   r   r      s    )!V r)   r   c                       e Zd Zy)TestPyIndentNr6   r7   r8   r4   r)   r'   r:   r:   B       r)   r:   c                       e Zd Zy)TestCIndentNr;   r4   r)   r'   r>   r>   C   r<   r)   r>   )	r   ior   test.test_jsonr   r   r   r:   r>   r4   r)   r'   <module>rA      s/      (9  9 x -:v , **e *r)   