class MyTestCase(TestCase): @classmethod def setUpClass(cls): super().setUpClass() ... @classmethod def tearDownClass(cls): ... super().tearDownClass()