Commit 5dfba51611c829e2d95be3481b8936adfca71df0

Authored by Christian Herdtweck
1 parent aae7b4c4

tests: Add another sample

This is an interesting one since "our" old implementation of is_encrypted
claims that the embedded file is still encrypted (which it is not), but
the msoffcrypto-is_encrypted gets it right.
tests/olevba/test_basic.py
... ... @@ -28,12 +28,13 @@ class TestOlevbaBasic(unittest.TestCase):
28 28 CRYPT_DIR = join(DATA_BASE_DIR, 'encrypted')
29 29 CRYPT_RETURN_CODE = 9
30 30 ADD_ARGS = [], ['-d', ], ['-a', ], ['-j', ], ['-t', ]
31   - EXCEPTIONS = ['autostart-encrypt-standardpassword.xlsm', # These ...
32   - 'autostart-encrypt-standardpassword.xlsb', # files ...
33   - 'dde-test-encrypt-standardpassword.xls', # are ...
34   - 'dde-test-encrypt-standardpassword.xlsx', # decrypted
35   - 'dde-test-encrypt-standardpassword.xlsm', # per ...
36   - 'dde-test-encrypt-standardpassword.xlsb'] # default.
  31 + EXCEPTIONS = ['autostart-encrypt-standardpassword.xls', # These ...
  32 + 'autostart-encrypt-standardpassword.xlsm', # files ...
  33 + 'autostart-encrypt-standardpassword.xlsb', # are ...
  34 + 'dde-test-encrypt-standardpassword.xls', # automati...
  35 + 'dde-test-encrypt-standardpassword.xlsx', # ...cally...
  36 + 'dde-test-encrypt-standardpassword.xlsm', # decrypted.
  37 + 'dde-test-encrypt-standardpassword.xlsb']
37 38 for filename in os.listdir(CRYPT_DIR):
38 39 if filename in EXCEPTIONS:
39 40 continue
... ...
tests/test-data/encrypted/autostart-encrypt-standardpassword.xls 0 → 100755
No preview for this file type