@@ -68,7 +68,7 @@ def test_properties(self):
68
68
self .assertEqual (value_dict ['author' ],
69
69
b'\xb1 \xe8 \xb1 \xe2 \xc1 \xa4 ;kijeong' )
70
70
elif 'olevba/sample_with_vba.ppt' in filename :
71
- print (" \n TODO: find reason for different results for olevba/sample_with_vba.ppt" )
71
+ print (' \n TODO: find reason for different results for olevba/sample_with_vba.ppt' )
72
72
# on korean test machine, this is the result:
73
73
# self.assertEqual(value_dict['codepage'],
74
74
# '949: ANSI/OEM Korean (Unified Hangul Code)')
@@ -77,10 +77,14 @@ def test_properties(self):
77
77
continue
78
78
else :
79
79
self .assertEqual (value_dict ['codepage' ],
80
- '1252: ANSI Latin 1; Western European (Windows)' )
80
+ '1252: ANSI Latin 1; Western European (Windows)' ,
81
+ 'Unexpected result {0!r} for codepage of sample {1}'
82
+ .format (value_dict ['codepage' ], filename ))
81
83
self .assertIn (value_dict ['author' ],
82
84
(b'user' , b'schulung' ,
83
- b'xxxxxxxxxxxx' , b'zzzzzzzzzzzz' ))
85
+ b'xxxxxxxxxxxx' , b'zzzzzzzzzzzz' ),
86
+ 'Unexpected result {0!r} for author of sample {1}'
87
+ .format (value_dict ['author' ], filename ))
84
88
85
89
def test_encrypted (self ):
86
90
"""Test indicator "encrypted"."""
0 commit comments