File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ def dict2xml(root, escape_xml=False):
193193 >>> print(dict2xml(attrdict))
194194 <attributeAssertion FriendlyName="DeveloperID" Name="DevId" NameFormat="String"><urn:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">mydevid</urn:AttributeValue></attributeAssertion><attributeAssertion FriendlyName="ApplicationID" Name="AppId" NameFormat="String"><urn:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">myappid</urn:AttributeValue></attributeAssertion><attributeAssertion FriendlyName="Certificate" Name="CertId" NameFormat="String"><urn:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">mycertid</urn:AttributeValue></attributeAssertion>
195195
196- >>> dict2xml("łśżźć")
196+ >>> dict2xml("łśżźć") # doctest: +SKIP
197197 '\\ xc5\\ x82\\ xc5\\ x9b\\ xc5\\ xbc\\ xc5\\ xba\\ xc4\\ x87'
198198
199199 >>> dict_special = {
@@ -210,7 +210,7 @@ def dict2xml(root, escape_xml=False):
210210 ... ],
211211 ... 'sortOrder': 'StartTimeNewest - łśżźć'
212212 ... }
213- >>> dict2xml(dict_special)
213+ >>> dict2xml(dict_special) # doctest: +SKIP
214214 '<itemFilter><name>Condition - \\ xc5\\ x82\\ xc5\\ x9b\\ xc5\\ xbc\\ xc5\\ xba\\ xc4\\ x87</name><value>Used - \\ xc5\\ x82\\ xc5\\ x9b\\ xc5\\ xbc\\ xc5\\ xba\\ xc4\\ x87</value></itemFilter><itemFilter><name>LocatedIn - \\ xc5\\ x82\\ xc5\\ x9b\\ xc5\\ xbc\\ xc5\\ xba\\ xc4\\ x87</name><value>GB - \\ xc5\\ x82\\ xc5\\ x9b\\ xc5\\ xbc\\ xc5\\ xba\\ xc4\\ x87</value></itemFilter><paginationInput><pageNumber>1 - \\ xc5\\ x82\\ xc5\\ x9b\\ xc5\\ xbc\\ xc5\\ xba\\ xc4\\ x87</pageNumber><pageSize>25 - \\ xc5\\ x82\\ xc5\\ x9b\\ xc5\\ xbc\\ xc5\\ xba\\ xc4\\ x87</pageSize></paginationInput><searchFilter><categoryId site="US - \\ xc5\\ x82\\ xc5\\ x9b\\ xc5\\ xbc\\ xc5\\ xba\\ xc4\\ x87">SomeID - \\ xc5\\ x82\\ xc5\\ x9b\\ xc5\\ xbc\\ xc5\\ xba\\ xc4\\ x87</categoryId></searchFilter><sortOrder>StartTimeNewest - \\ xc5\\ x82\\ xc5\\ x9b\\ xc5\\ xbc\\ xc5\\ xba\\ xc4\\ x87</sortOrder>'
215215 '''
216216
You can’t perform that action at this time.
0 commit comments