
    <e                          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dS )
    N)StringIO)PyTestCTestc                       e Zd Zd Zd ZdS )
TestIndentc           
         dgdgg dddddidd	d
g}t          j        d          }|                     |          }|                     |ddd          }|                     |ddd          }|                     |dd          }|                     |dd          }|                     |          }|                     |          }	|                     |          }
|                     ||           |                     |	|           |                     |
|           |                     ||                    d                     |                     ||           |                     ||           |                     ||           d S )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              1/usr/lib/python3.11/test/test_json/test_indent.pytest_indentzTestIndent.test_indent   s   [8*b+{Mr]e%@@C  "  * ZZ]]ZZ!tZLLZZ$$;ZOOZZ!tZ44ZZ$$Z77ZZ^^ZZ^^ZZ^^QQQV..q11222V$$$R   R         c                 N     ddi fd} |dd            |d d           d S )N      c                                         |           }                    ||           t                      }j                            ||                                |                                |           d S )N)r   )r   r   r   jsondumpgetvalue)r   expectedr   sior   r   s       r'   checkz&TestIndent.test_indent0.<locals>.check4   su    Af--BR*****CINN1c&N111S\\^^X66666r)   r   z
{
"3": 1
}z{"3": 1} )r   r3   r   s   ` @r'   test_indent0zTestIndent.test_indent02   sW    F	7 	7 	7 	7 	7 	7 	a   dJr)   N)__name__
__module____qualname__r(   r5   r4   r)   r'   r   r      s3        )! )! )!V         r)   r   c                       e Zd ZdS )TestPyIndentNr6   r7   r8   r4   r)   r'   r:   r:   B             r)   r:   c                       e Zd ZdS )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  9  9  9  9  9  9 x - , , , ,:v , , , * * * * **e * * * * *r)   