-
These tests capture stdout to check whether msodde finds dde links correctly
-
This should help avoiding some common mistakes when adding new unit tests
-
The test documents supplied here may contain DDE links but these only start calc.exe. No links to web pages there.
-
Custom command line arguments greatly simplifies unit test creation for the main method. Also, avoid calling sys.exit in functions (that is good practice if I recall corretly).
-
Also correct banner and use the argparse-way to test for file existence
-
Tested with Python 3.3.2
-
Works with Python 2.7, still have to check with other versions
-
Output is only json-compatible if program succeeded (return code 0). Otherwise there may be error messages (i.e. from argument parsing).
-
* Adds an additional check to detect if DDE links exist inside fldSimple values * clean-up to use TAG_W_INSTRATTR instead of constructing string during parsing
-
rtfobj: Handling negative bin len (anti-analysis trick)
-
A large num_props value will cause memory bloat (via the range usage) and potentially billions of useless logs in relaxed mode. Clamp it to a value that has a reasonable chance of working without generating exceptions.