nosetests is capturing the output of my print statements. How to circumvent this?
Either: $ nosetests –nocapture mytest.py Or: $ NOSE_NOCAPTURE=1 nosetests mytests.py (it can also be specified in the nose.cfg file, see nosetests –help)
Either: $ nosetests –nocapture mytest.py Or: $ NOSE_NOCAPTURE=1 nosetests mytests.py (it can also be specified in the nose.cfg file, see nosetests –help)
nosetests appname.tests.functional.test_controller should work, where the file is named test_controller.py. To run a specific test class and method use a path of the form module.path:ClassNameInFile.method_name, that is, with a colon separating the module/file path and the objects within the file. module.path is the relative path to the file (e.g. tests/my_tests.py:ClassNameInFile.method_name).