Running a single test from unittest.TestCase via the command line September 25, 2022 by Tarik This works as you suggest – you just have to specify the class name as well: python testMyCase.py MyCase.testItIsHot