print('before any tests (global) just once...')


class MyTestCase(unittest.TestCase):
    class_setup_called = False

def __init__(self, test_name):
    unittest.TestCase.__init__(self, test_name)
if not self.__class__.class_setup_called:
    self.setUpClass()
self.__class__.class_setup_called = True

@staticmethod
def setUpClass():
    print('before first test only...')

def setUp(self):
    print('before each test...')
Инициализация модульного теста в PyDev?