summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-04-17 15:11:23 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-04-17 15:21:05 +0200
commitf1f9ecccc164a48fc29244d45269ef913c01b12f (patch)
tree360fec16a408b382e89b0aa79c3cd145b1bd5305 /test
parent4cf732e24a768f161abded0a1caf5fd73185e293 (diff)
docstream: hook into msometa
Diffstat (limited to 'test')
-rwxr-xr-xtest/doc/test.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/doc/test.py b/test/doc/test.py
index c63bc11..55d9819 100755
--- a/test/doc/test.py
+++ b/test/doc/test.py
@@ -157,6 +157,12 @@ class Test(unittest.TestCase):
# Zoom is 42%
self.assertEqual('0x2a', dopBase.findall('pctWwdSaved')[0].attrib['value'])
+ # Assert metadata: who is the author.
+ propertyIdentifier = self.root.findall('stream[@name="\\x05SummaryInformation"]/propertySetStream/propertySet/propertyIdentifierAndOffset3/PropertyIdentifier')[0]
+ self.assertEqual('PIDSI_AUTHOR', propertyIdentifier.attrib["name"])
+ typedPropertyValue = self.root.findall('stream[@name="\\x05SummaryInformation"]/propertySetStream/propertySet/typedPropertyValue3/Value/Characters')[0]
+ self.assertEqual('vmiklos', typedPropertyValue.attrib["value"])
+
def test_nofibnew(self):
self.dump('nofibnew')