Fix unittests for previous commit

This commit is contained in:
Eduard Braun 2016-06-12 15:42:30 +02:00
parent 84b36c7109
commit f83b03707b

View file

@ -1031,7 +1031,7 @@ class DoNotPrettyPrintWhenWhitespacePreserved(unittest.TestCase):
def runTest(self): def runTest(self):
with open('unittests/whitespace-important.svg') as f: with open('unittests/whitespace-important.svg') as f:
s = scour.scourString(f.read()).splitlines() s = scour.scourString(f.read()).splitlines()
c = '''<?xml version="1.0" encoding="UTF-8" standalone="no"?> c = '''<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<text xml:space="preserve">This is some <tspan font-style="italic">messed-up</tspan> markup</text> <text xml:space="preserve">This is some <tspan font-style="italic">messed-up</tspan> markup</text>
</svg> </svg>
@ -1044,7 +1044,7 @@ class DoNotPrettyPrintWhenNestedWhitespacePreserved(unittest.TestCase):
def runTest(self): def runTest(self):
with open('unittests/whitespace-nested.svg') as f: with open('unittests/whitespace-nested.svg') as f:
s = scour.scourString(f.read()).splitlines() s = scour.scourString(f.read()).splitlines()
c = '''<?xml version="1.0" encoding="UTF-8" standalone="no"?> c = '''<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<text xml:space="preserve"><tspan font-style="italic">Use <tspan font-style="bold">bold</tspan> text</tspan></text> <text xml:space="preserve"><tspan font-style="italic">Use <tspan font-style="bold">bold</tspan> text</tspan></text>
</svg> </svg>