A class method called before tests in an individual class are run. setUpClass is called with the class as the only argument and must be decorated as a classmethod():
setUpClass()
@classmethod def setUpClass(cls): ...