Remove executable flag from Python files so nosetests can find them

So, why doesn’t nosetests run my newly created test file?

Python’s nosetests out-of-the-box looks for

  • test files that are prepended with “test_”
  • test classes that are prepended with Test
  • test cases inside of a test class that are prepended with “test_”

However, the test files themselves cannot be marked as executable. Nosetests will ignore executable Python files. To get around this, do

chmod -x “”

and run nosetests again.