Commit 9062302ef3d9134d78be0c97cadbba29daf5d104
Committed by
GitHub
1 parent
9a7b6556
Test for decalage2#251
Showing
1 changed file
with
16 additions
and
0 deletions
tests/rtfobj/test_issue_251.py
0 → 100644
| 1 | +import unittest, sys, os | |
| 2 | + | |
| 3 | +from tests.test_utils import testdata_reader | |
| 4 | +from oletools import rtfobj | |
| 5 | + | |
| 6 | +class TestRtfObjIssue251(unittest.TestCase): | |
| 7 | + def test_bin_no_param(self): | |
| 8 | + data = testdata_reader.read('rtfobj/issue_251.rtf') | |
| 9 | + rtfp = rtfobj.RtfObjParser(data) | |
| 10 | + rtfp.parse() | |
| 11 | + objects = rtfp.objects | |
| 12 | + | |
| 13 | + self.assertTrue(len(objects) == 1) | |
| 14 | + | |
| 15 | +if __name__ == '__main__': | |
| 16 | + unittest.main() | ... | ... |