import unittest unittest.TestLoader.testMethodPrefix = 'should' from unittest import TestCase as Specification class MyClass(Specification): def should_do_something(): """This method with the 'should' prefix will be picked up by test runners"""