HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //proc/self/root/lib/python3.6/site-packages/gyp/__pycache__/easy_xml_test.cpython-36.pyc
3

��S]��@sndZddljZddlZyddlmZWn ek
rFddlmZYnXGdd�dej�Ze	dkrjej
�dS)z& Unit tests for the easy_xml.py file. �N)�StringIOc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�TestSequenceFunctionscCst�|_dS)N)r�stderr)�self�r�#/usr/lib/python3.6/easy_xml_test.py�setUpszTestSequenceFunctions.setUpcCs0|jtjdg�d�|jtjdgdd�d�dS)NZtestz-<?xml version="1.0" encoding="utf-8"?><test/>zWindows-1252)�encodingz4<?xml version="1.0" encoding="Windows-1252"?><test/>)�assertEqual�easy_xml�XmlToString)rrrr�test_EasyXml_simples
z)TestSequenceFunctions.test_EasyXml_simplecCs |jtjdddd�g�d�dS)NZtest2Zvalue1Zvalue2)�a�bzD<?xml version="1.0" encoding="utf-8"?><test2 a="value1" b="value2"/>)r
rr)rrrr�#test_EasyXml_simple_with_attributessz9TestSequenceFunctions.test_EasyXml_simple_with_attributescCs<d}d}|jdd�}|jtjdd|i|g�d||f�dS)Nz<test>'"
&
fooz%&lt;test&gt;'&quot;&#xD;&amp;&#xA;foo�'z&apos;�test3rz><?xml version="1.0" encoding="utf-8"?><test3 a="%s">%s</test3>)�replacer
rr)rZoriginalZ	convertedZconverted_aposrrr�test_EasyXml_escaping#sz+TestSequenceFunctions.test_EasyXml_escapingcCs,|jtjddddggdgggdd�d�dS)	NrZGrandParentZParent1ZChildZParent2T)Zprettyz�<?xml version="1.0" encoding="utf-8"?>
<test3>
  <GrandParent>
    <Parent1>
      <Child/>
    </Parent1>
    <Parent2/>
  </GrandParent>
</test3>
)r
rr)rrrr�test_EasyXml_pretty,sz)TestSequenceFunctions.test_EasyXml_prettyc	Cs^d}tjddddiddgdd	gd
dggddd
igdddd�ddgddggg�}|j||�dS)Na�<?xml version="1.0" encoding="utf-8"?><Project><PropertyGroup Label="Globals"><ProjectGuid>{D2250C20-3A94-4FB9-AF73-11BC5B73884B}</ProjectGuid><Keyword>Win32Proj</Keyword><RootNamespace>automated_ui_tests</RootNamespace></PropertyGroup><Import Project="$(VCTargetsPath)\Microsoft.Cpp.props"/><PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"><ConfigurationType>Application</ConfigurationType><CharacterSet>Unicode</CharacterSet></PropertyGroup></Project>ZProjectZ
PropertyGroup�LabelZGlobalsZProjectGuidz&{D2250C20-3A94-4FB9-AF73-11BC5B73884B}ZKeywordZ	Win32ProjZ
RootNamespaceZautomated_ui_testsZImportz$$(VCTargetsPath)\Microsoft.Cpp.propsz-'$(Configuration)|$(Platform)'=='Debug|Win32'Z
Configuration)Z	ConditionrZConfigurationTypeZApplicationZCharacterSetZUnicode)rrr
)r�targetZxmlrrr�test_EasyXml_complexCs
z*TestSequenceFunctions.test_EasyXml_complexN)	�__name__�
__module__�__qualname__rr
rrrrrrrrrs		r�__main__)�__doc__Zgyp.easy_xmlrZunittestr�ImportError�ioZTestCaserr�mainrrrr�<module>s
X