
    DUf
                     J    d dl mZ d dlZd dlZd dlmZ  G d de          ZdS )    )TestCaseN)StringIOc                        e Zd 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          }t          j        |          }t          j        |ddd          }t          j        |ddd          }t          j        |ddd          }t          j        |          }t          j        |          }t          j        |          }	t          j        |          }
|                     ||           |                     ||           |                     |	|           |                     |
|           |                     ||                    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,: )indent	sort_keys
separatorsz     )textwrapdedentjsondumpsloadsassertEqualreplace)selfhexpectd1d2d3d4h1h2h3h4s              Y/var/www/html/software/conda/lib/python3.11/site-packages/simplejson/tests/test_indent.pytest_indentzTestIndent.test_indent   s   [8*b+{r]e%@@C  "  , Z]]Z$$;OOOZ$$;OOOZ!tLLLZ^^Z^^Z^^Z^^QQQQV^^D$77888V^^D$77888 	V$$$$$    c                 N     ddi fd} |dd            |d d           d S )N      c                     t          j        |           }                    ||           t                      }t          j        ||                                |                                |           d S )Nr   )r   r   r   r   dumpgetvalue)r   expectedr!   sior   r   s       r)   checkz&TestIndent.test_indent0.<locals>.check:   sq    Af---BR*****CIaV,,,,S\\^^X66666r+   r   z
{
"3": 1
}z{"3": 1} )r   r5   r   s   ` @r)   test_indent0zTestIndent.test_indent08   sW    F	7 	7 	7 	7 	7 	7 	a   dJr+   c                    g d}d}d}|                      |t          j        |dd                     |                      |t          j        |dd                     |                      |t          j        |d                     d S )	N)r.   r   r-      z[
1,
2,
3,
4
]z[
1, 
2, 
3, 
4
]r   )z, r   )r   r   r   r0   )r   r   r   )r   lstr    expect_spacess       r)   test_separatorszTestIndent.test_separatorsG   s    ii&0Js1>>>	@ 	@ 	@ 	Js1===	? 	? 	? 	Js1%%%	' 	' 	' 	' 	'r+   N)__name__
__module____qualname__r*   r7   r<   r6   r+   r)   r   r      sB        .% .% .%`     ' ' ' ' 'r+   r   )unittestr   r   
simplejsonr   simplejson.compatr   r   r6   r+   r)   <module>rC      s|               & & & & & &O' O' O' O' O' O' O' O' O' O'r+   