summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-11-28 22:24:40 +0100
committerMiklos Vajna <vmiklos@suse.cz>2012-11-28 22:24:40 +0100
commite2b8fcc9380b83e36742d66093f0aa9c888e012b (patch)
tree6c6b980782256b186fb700a2306333810422895e /test
parent44e13d4f4db2774be40e0af807e84e8c077da9c2 (diff)
PlcfBkl: dump the text of the commented text range, not just the start/end positions
Diffstat (limited to 'test')
-rwxr-xr-xtest/doc/test.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/doc/test.py b/test/doc/test.py
index a0356d0..546c141 100755
--- a/test/doc/test.py
+++ b/test/doc/test.py
@@ -109,10 +109,8 @@ class Test(unittest.TestCase):
commentEnds = self.root.findall('stream[@name="WordDocument"]/fib/fibRgFcLcbBlob/lcbPlcfAtnBkl/plcfBkl/aCP')
# The first comment covers Hello\x05, the second covers This\x05.
- self.assertEqual('H', commentStarts[0].findall('transformed')[0].attrib['value'])
- self.assertEqual('\\x05', commentEnds[0].findall('transformed')[0].attrib['value'])
- self.assertEqual('T', commentStarts[1].findall('transformed')[0].attrib['value'])
- self.assertEqual('\\x05', commentEnds[1].findall('transformed')[0].attrib['value'])
+ self.assertEqual('Hello', commentEnds[0].findall('transformed')[0].attrib['value'])
+ self.assertEqual('This', commentEnds[1].findall('transformed')[0].attrib['value'])
if __name__ == '__main__':
unittest.main()