Running a single test from unittest.TestCase via the command line

This works as you suggest – you just have to specify the class name as well:

python testMyCase.py MyCase.testItIsHot

Leave a Comment