assert_ style expressions appear as undefined
Brought to you by:
fabioz
I'm pretty new to Python and the project I work on uses the nose unit test framework.
Our tests make extensive use of various assert_xxx statements (assert_true(), assert_false(), assert_equal(), etc.) but unfortunately, none of those statements are recognized as valid by the pydev editor, so they are all marked as undefined (red underline).
This reduces readability greatly and severely limits the usefulness of the built-in syntax checker.
From what I can tell, the assert_xxx statements are being dynamically generated in the nose.tools at runtime (in so much as I currently understand Python syntax) as pep8-compliant synonyms for their equivalent unittest counterparts (assertTrue, assertFalse, assertEqual, etc.)