adapt the junit xml escaping test to my escaping changes

This commit is contained in:
Ronny Pfannschmidt 2012-09-03 09:54:02 +02:00
parent 41ad7dbae1
commit 848c749d1a
1 changed files with 2 additions and 2 deletions

View File

@ -374,14 +374,14 @@ def test_invalid_xml_escape():
for i in invalid:
got = bin_xml_escape(unichr(i))
got = bin_xml_escape(unichr(i)).uniobj
if i <= 0xFF:
expected = '#x%02X' % i
else:
expected = '#x%04X' % i
assert got == expected
for i in valid:
assert chr(i) == bin_xml_escape(unichr(i))
assert chr(i) == bin_xml_escape(unichr(i)).uniobj
def test_logxml_path_expansion():
from _pytest.junitxml import LogXML