Tests in sample_nose_test.py can be run using the below command.
python -m nose sample_nose_test.py
Output
.
----------------------
Ran 1 test in 0.000s
OK
For verbose output use -v option at the end.
python -m nose sample_nose_test.py -v
Output
sample_nose_test.test_sample_nosetest ... ok
-------------------------
Ran 1 test in 0.001s
OK